diff --git a/src/lib/base.html b/src/lib/base.html index 42d54ae7d9..d98f19bd6b 100644 --- a/src/lib/base.html +++ b/src/lib/base.html @@ -46,7 +46,7 @@ } } else { this._desugarBehaviors(); // abstract - // previously factor behavior call unrolled for perf + // this code was in a function but is unrolled here for perf for (var i=0, b; i < this.behaviors.length; i++) { b = this.behaviors[i]; if (b.beforeRegister) { @@ -69,7 +69,7 @@ } Polymer.telemetry.instanceCount++; this.root = this; - // previously factor behavior call unrolled for perf + // this code was in a function but is unrolled here for perf for (var i=0, b; i < this.behaviors.length; i++) { b = this.behaviors[i]; if (b.created) { @@ -99,7 +99,7 @@ // IFF `lazyRegister` is 'max' if (settings.lazyRegister === 'max') { proto._desugarBehaviors(); // abstract - // previously factor behavior call unrolled for perf + // this code was in a function but is unrolled here for perf for (var i=0, b; i < proto.behaviors.length; i++) { b = proto.behaviors[i]; if (b.beforeRegister) { @@ -112,7 +112,7 @@ proto._finishRegisterFeatures(); } // registration extension point - // previously factor behavior call unrolled for perf + // this code was in a function but is unrolled here for perf for (var j=0, pb; j < proto.behaviors.length; j++) { pb = proto.behaviors[j]; if (pb.registered) { @@ -139,7 +139,7 @@ var self = this; Polymer.RenderStatus.whenReady(function() { self.isAttached = true; - // previously factor behavior call unrolled for perf + // this code was in a function but is unrolled here for perf for (var i=0, b; i < self.behaviors.length; i++) { b = self.behaviors[i]; if (b.attached) { @@ -158,7 +158,7 @@ var self = this; Polymer.RenderStatus.whenReady(function() { self.isAttached = false; - // previously factor behavior call unrolled for perf + // this code was in a function but is unrolled here for perf for (var i=0, b; i < self.behaviors.length; i++) { b = self.behaviors[i]; if (b.detached) { @@ -176,7 +176,7 @@ // TODO(sorvell): consider filtering out changes to host attributes // note: this was barely measurable with 3 host attributes. this._attributeChangedImpl(name); // abstract - // previously factor behavior call unrolled for perf + // this code was in a function but is unrolled here for perf for (var i=0, b; i < this.behaviors.length; i++) { b = this.behaviors[i]; if (b.attributeChanged) { diff --git a/src/mini/ready.html b/src/mini/ready.html index c55b301547..38c6586a3d 100644 --- a/src/mini/ready.html +++ b/src/mini/ready.html @@ -137,6 +137,7 @@ // note: called localChildren -> host _readySelf: function() { // ready + // this code was in a function but is unrolled here for perf for (var i=0, b; i < this.behaviors.length; i++) { b = this.behaviors[i]; if (b.ready) {