Skip to content

Commit

Permalink
Remove unneeded var. Reorder for easier review.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Apr 30, 2015
1 parent ea22c54 commit c74ad77
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/lib/template/templatizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@
this.ctor = ctor;
},

_getRootDataHost: function() {
return (this.dataHost && this.dataHost._rootDataHost) || this.dataHost;
},

_hideTemplateChildrenChanged: function(hidden) {
if (this._hideChildren) {
// Extension point for Templatizer sub-classes
// TODO(kschaaf): remove once element protos can override behaviors
this._hideChildren(hidden);
}
},

_templatizerDebounce: function(fn) {
this._templatizerStatic.callbacks[this._templatizerId] = fn.bind(this);
this._templatizerStatic.debouncer =
Expand All @@ -102,10 +114,6 @@
}
},

_getRootDataHost: function() {
return (this.dataHost && this.dataHost._rootDataHost) || this.dataHost;
},

customPrepAnnotations: function(archetype, template) {
if (template) {
archetype._template = template;
Expand Down Expand Up @@ -189,14 +197,6 @@
});
},

_hideTemplateChildrenChanged: function(hidden) {
if (this._hideChildren) {
// Extension point for Templatizer sub-classes
// TODO(kschaaf): remove once element protos can override behaviors
this._hideChildren(hidden);
}
},

_notifyPathImpl: function(path, value) {
var p = path.match(/([^.]*)\.(([^.]*).*)/);
// 'root.sub.path'
Expand Down Expand Up @@ -297,6 +297,4 @@

};

Polymer.Templatizer.count = 0;

</script>

0 comments on commit c74ad77

Please sign in to comment.