Skip to content

Commit

Permalink
Use isDeep
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Jul 23, 2016
1 parent 6d1dd88 commit 5627a55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/lib/bind/accessors.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
model._bindListeners = [];
}
var fn = this._notedListenerFactory(property, path,
this._isStructured(path), negated);
Polymer.Path.isDeep(path), negated);
var eventName = event ||
(Polymer.CaseMap.camelToDashCase(property) + '-changed');
model._bindListeners.push({
Expand All @@ -207,10 +207,6 @@
});
},

_isStructured: function(path) {
return path.indexOf('.') > 0;
},

_isEventBogus: function(e, target) {
return e.path && e.path[0] !== target;
},
Expand Down
2 changes: 1 addition & 1 deletion src/standard/effectBuilder.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
if (!a.literal) {
a.model = Polymer.Path.head(arg);
// detect structured path (has dots)
a.structured = arg.indexOf('.') > 0;
a.structured = Polymer.Path.isDeep(arg);
if (a.structured) {
a.wildcard = (arg.slice(-2) == '.*');
if (a.wildcard) {
Expand Down

0 comments on commit 5627a55

Please sign in to comment.