Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Oct 8, 2015
1 parent 1a89bcf commit 79dfe1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/template/templatizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
template._forwardParentProp = this._forwardParentProp.bind(this);
}
this._extendTemplate(template, proto);
template._pathEffector = this._pathEffectorImpl.bind(this, template);
template._pathEffector = this._pathEffectorImpl.bind(this);
}
},

Expand Down Expand Up @@ -304,14 +304,14 @@
},

// Overrides Base notify-path module
_pathEffectorImpl: function(template, path, value, fromAbove) {
_pathEffectorImpl: function(path, value, fromAbove) {
if (this._forwardParentPath) {
if (path.indexOf(this._parentPropPrefix) === 0) {
var subPath = path.substring(this._parentPropPrefix.length);
this._forwardParentPath(subPath, value);
}
}
Polymer.Base._pathEffector.call(template, path, value, fromAbove);
Polymer.Base._pathEffector.call(this._templatized, path, value, fromAbove);
},

_constructorImpl: function(model, host) {
Expand Down

0 comments on commit 79dfe1f

Please sign in to comment.