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

Side by Side Diff: lib/src/js/polymer_base_dart.html

Issue 1290643006: First cut at behaviors. This just implements the lifecycle methodsportion. We may get the rest for … (Closed) Base URL: git@github.com:dart-lang/polymer-dart.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 <!--
2 Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
Siggi Cherem (dart-lang) 2015/08/13 18:52:41 2015
jakemac 2015/08/13 19:14:29 Done.
3 for details. All rights reserved. Use of this source code is governed by a
4 BSD-style license that can be found in the LICENSE file.
5 -->
1 <script> 6 <script>
2 (function() { 7 (function() {
3 Polymer.Base.originalPolymerCreatedCallback = 8 Polymer.Base.originalPolymerCreatedCallback =
4 Polymer.Base.createdCallback; 9 Polymer.Base.createdCallback;
5 Polymer.Base.createdCallback = function() { 10 Polymer.Base.createdCallback = function() {
6 if (this.__isPolymerDart__) return; 11 if (this.__isPolymerDart__) return;
7 this.originalPolymerCreatedCallback(); 12 this.originalPolymerCreatedCallback();
8 }; 13 };
9 14
10 // Store serialize/deserialize to retain the original behavior when the 15 // Store serialize/deserialize to retain the original behavior when the
(...skipping 29 matching lines...) Expand all
40 // recognize. 45 // recognize.
41 var args = []; 46 var args = [];
42 for (var i = 0; i < arguments.length; i++) { 47 for (var i = 0; i < arguments.length; i++) {
43 args[i] = arguments[i]; 48 args[i] = arguments[i];
44 } 49 }
45 return dartFunction(thisArg, args); 50 return dartFunction(thisArg, args);
46 } 51 }
47 }; 52 };
48 })(); 53 })();
49 </script> 54 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698