Index: lib/src/codegen/js_codegen.dart |
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart |
index 62a5a01109d3206ec36ea4a3325e510a5eeeb64c..d82e26a75f8fdab8e90e8b4c0b2f0cadc6d170e2 100644 |
--- a/lib/src/codegen/js_codegen.dart |
+++ b/lib/src/codegen/js_codegen.dart |
@@ -2670,8 +2670,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor { |
// Dart "extension" methods. Used for JS Array, Boolean, Number, String. |
if (allowExtensions && _extensionTypes.contains(type.element)) { |
- // Special case `length`. We can call it directly. |
- if (name != 'length') return js.call('dartx.#', _propertyName(name)); |
+ return js.call('dartx.#', _propertyName(name)); |
vsm
2015/06/10 17:00:46
Will this really fix the broken text example?
The
Jennifer Messerly
2015/06/10 17:13:16
yup. It works because of this logic:
https://githu
|
} |
return _propertyName(name); |