Skip to content

Commit

Permalink
Add radix for correctness.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Oct 9, 2015
1 parent 97503ec commit a79f012
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/standard/notify-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
} else {
// Get item from simple property dereference
prop = prop[part];
if (array && (parseInt(part) == part)) {
if (array && (parseInt(part, 10) == part)) {
// Translate array indices to collection keys for path notificaiton
parts[i] = Polymer.Collection.get(array).getKey(prop);
}
Expand All @@ -189,7 +189,7 @@
last = array.indexOf(old);
// Replace item associated with key in collection
coll.setItem(key, value);
} else if (parseInt(last) == last) {
} else if (parseInt(last, 10) == last) {
// Dereference index & lookup collection key
var old = prop[last];
var key = coll.getKey(old);
Expand Down Expand Up @@ -253,7 +253,7 @@
} else {
// Get item from simple property dereference
prop = prop[part];
if (info && array && (parseInt(part) == part)) {
if (info && array && (parseInt(part, 10) == part)) {
// Translate array indices to collection keys for path notificaiton
parts[i] = Polymer.Collection.get(array).getKey(prop);
}
Expand Down

0 comments on commit a79f012

Please sign in to comment.