Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: lib/src/js/polymer_array_methods.html

Issue 1351693003: Update to use one less proxy per element (Closed) Base URL: git@github.com:dart-lang/polymer-dart.git@behaviors
Patch Set: update comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/common/polymer_serialize.dart ('k') | lib/src/js/polymer_base_dart.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/polymer_array_methods.html
diff --git a/lib/src/js/polymer_array_methods.html b/lib/src/js/polymer_array_methods.html
deleted file mode 100644
index f8d3f324eaa93df64b2a54f1266138435a4b703d..0000000000000000000000000000000000000000
--- a/lib/src/js/polymer_array_methods.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<link rel="import" href="polymer_base_dart.html">
-<script>
- (function() {
- var _originalPush = Polymer.Base.push;
- Polymer.Base.push = function(path) {
- var value = _originalPush.apply(this, arguments);
- var dartList = this.get(path).__dartClass__;
- if (dartList == null) return value;
- Polymer.Dart.push(dartList, Array.prototype.splice.call(arguments, 1));
- return value;
- };
-
- Polymer.Base._originalPop = Polymer.Base.pop;
- Polymer.Base.pop = function(path) {
- var value = this._originalPop(path);
- var dartList = this.get(path).__dartClass__;
- if (dartList == null) return value;
- Polymer.Dart.pop(dartList);
- return value;
- };
-
- Polymer.Base._originalShift = Polymer.Base.shift;
- Polymer.Base.shift = function(path) {
- var value = this._originalShift(path);
- var dartList = this.get(path).__dartClass__;
- if (dartList == null) return value;
- Polymer.Dart.shift(dartList);
- return value;
- };
-
- var _originalUnshift = Polymer.Base.unshift;
- Polymer.Base.unshift = function(path) {
- var value = _originalUnshift.apply(this, arguments);
- var dartList = this.get(path).__dartClass__;
- if (dartList == null) return value;
- Polymer.Dart.unshift(dartList, Array.prototype.splice.call(arguments, 1));
- return value;
- };
-
- var _originalSplice = Polymer.Base.splice;
- Polymer.Base.splice = function(path, index, removeCount) {
- var value = _originalSplice.apply(this, arguments);
- var dartList = this.get(path).__dartClass__;
- if (dartList == null) return value;
- Polymer.Dart.splice(
- dartList, index, removeCount,
- Array.prototype.splice.call(arguments, 3));
- return value;
- };
- })();
-</script>
« no previous file with comments | « lib/src/common/polymer_serialize.dart ('k') | lib/src/js/polymer_base_dart.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698