Skip to content

Commit 478978d

Browse files
committed
Use head in templatizer
1 parent 852aba0 commit 478978d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/template/templatizer.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,7 @@
325325

326326
_notifyPathUpImpl: function(path, value) {
327327
var dataHost = this.dataHost;
328-
var dot = path.indexOf('.');
329-
var root = dot < 0 ? path : path.slice(0, dot);
328+
var root = Polymer.Path.head(path);
330329
// Call extension point for Templatizer sub-classes
331330
dataHost._forwardInstancePath.call(dataHost, this, path, value);
332331
if (root in dataHost._parentProps) {

0 commit comments

Comments
 (0)