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

Unified Diff: third_party/polymer/v0_8/components-chromium/polymer/src/lib/template/x-autobind-extracted.js

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also remove polymer/explainer Created 5 years, 8 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
Index: third_party/polymer/v0_8/components-chromium/polymer/src/lib/template/x-autobind-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/polymer/src/lib/template/x-autobind-extracted.js b/third_party/polymer/v0_8/components-chromium/polymer/src/lib/template/x-autobind-extracted.js
new file mode 100644
index 0000000000000000000000000000000000000000..1cfde49b2282f05a5b45e8ec2f6bb4eb90d43f16
--- /dev/null
+++ b/third_party/polymer/v0_8/components-chromium/polymer/src/lib/template/x-autobind-extracted.js
@@ -0,0 +1,29 @@
+
+
+ Polymer({
+
+ is: 'x-autobind',
+
+ extends: 'template',
+
+ _registerFeatures: function() {
+ this._prepExtends();
+ this._prepConstructor();
+ },
+
+ _finishDistribute: function() {
+ var parentDom = Polymer.dom(Polymer.dom(this).parentNode);
+ parentDom.insertBefore(this.root, this);
+ },
+
+ _initFeatures: function() {
+ this._template = this;
+ this._prepAnnotations();
+ this._prepEffects();
+ this._prepBehaviors();
+ this._prepBindings();
+ Polymer.Base._initFeatures.call(this);
+ }
+
+ });
+

Powered by Google App Engine
This is Rietveld 408576698