Skip to content

Commit

Permalink
Fix typo in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Oct 8, 2015
1 parent 10021cc commit e59dbef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/standard/notify-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
* based on a dirty check of whether the new value was already known.
*/
notifyPath: function(path, value, fromAbove) {
// Convert any array indicies to keys before notifying path
// Convert any array indices to keys before notifying path
var info = {};
path = this.get(path, this, info);
// Notify change to key-based path
Expand Down Expand Up @@ -146,7 +146,7 @@
* or an array of path parts (e.g. `['foo.bar', 'baz']`). Note that
* bracketed expressions are not supported; string-based path parts
* *must* be separated by dots. Note that when dereferencing array
* indicies, the index may be used as a dotted part directly
* indices, the index may be used as a dotted part directly
* (e.g. `users.12.name` or `['users', 12, 'name']`).
* @param {*} value Value to set at the specified path.
* @param {Object=} root Root object from which the path is evaluated.
Expand All @@ -167,7 +167,7 @@
// Get item from simple property dereference
prop = prop[part];
if (array && (parseInt(part) == part)) {
// Translate array indicies to collection keys for path notificaiton
// Translate array indices to collection keys for path notificaiton
parts[i] = Polymer.Collection.get(array).getKey(prop);
}
}
Expand All @@ -185,7 +185,7 @@
// Dereference index & lookup collection key
var old = prop[last];
var key = coll.getKey(old);
// Translate array indicies to collection keys for path notificaiton
// Translate array indices to collection keys for path notificaiton
parts[i] = key;
// Replace item associated with key in collection
coll.setItem(key, value);
Expand Down Expand Up @@ -224,11 +224,11 @@
* or an array of path parts (e.g. `['foo.bar', 'baz']`). Note that
* bracketed expressions are not supported; string-based path parts
* *must* be separated by dots. Note that when dereferencing array
* indicies, the index may be used as a dotted part directly
* indices, the index may be used as a dotted part directly
* (e.g. `users.12.name` or `['users', 12, 'name']`).
* @param {Object=} root Root object from which the path is evaluated.
* @param {Object=} info Info object; if supplied, a `path` property
* will be added containing path with array indicies converted to keys
* will be added containing path with array indices converted to keys
* @return {*} Value at the path, or `undefined` if any part of the path
* is undefined.
*/
Expand All @@ -249,7 +249,7 @@
// Part was index; simple dereference
prop = prop[part];
if (info && array && (parseInt(part) == part)) {
// Translate array indicies to collection keys for path notificaiton
// Translate array indices to collection keys for path notificaiton
parts[i] = Polymer.Collection.get(array).getKey(prop);
}
}
Expand Down

0 comments on commit e59dbef

Please sign in to comment.