Skip to content

Commit

Permalink
Allow setting non-index array properties. Fixes #2096.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jul 16, 2015
1 parent 88d83d4 commit f8cad94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/standard/notify-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,17 @@
var last = parts[parts.length-1];
if (parts.length > 1) {
for (var i=0; i<parts.length-1; i++) {
prop = prop[parts[i]];
if (array) {
var part = parts[i];
prop = prop[part];
if (array && (parseInt(part) == part)) {
parts[i] = Polymer.Collection.get(array).getKey(prop);
}
if (!prop) {
return;
}
array = Array.isArray(prop) ? prop : null;
}
if (array) {
if (array && (parseInt(last) == last)) {
var coll = Polymer.Collection.get(array);
var old = prop[last];
var key = coll.getKey(old);
Expand Down

0 comments on commit f8cad94

Please sign in to comment.