diff options
| author | Misko Hevery | 2010-01-11 16:15:12 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-01-11 16:15:12 -0800 |
| commit | 1a42a3fab99ca02af0476f5a87175c53104aa2e3 (patch) | |
| tree | def5eb17d459d8d3ace81fece12a087d0651c2bc /src/Binder.js | |
| parent | 1aba6b53b88c70b61a0cc991b1371739305d117b (diff) | |
| download | angular.js-1a42a3fab99ca02af0476f5a87175c53104aa2e3.tar.bz2 | |
green
Diffstat (limited to 'src/Binder.js')
| -rw-r--r-- | src/Binder.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Binder.js b/src/Binder.js index 3589cb88..4c5299ed 100644 --- a/src/Binder.js +++ b/src/Binder.js @@ -57,16 +57,16 @@ Binder.prototype.parseAnchor = function(url) { var anchor = url.substring(anchorIndex + 1); var anchorQuery = this.parseQueryString(anchor); - jQuery.each(self.anchor, function(key, newValue) { + foreach(self.anchor, function(newValue, key) { delete self.anchor[key]; }); - jQuery.each(anchorQuery, function(key, newValue) { + foreach(anchorQuery, function(newValue, key) { self.anchor[key] = newValue; }); }; Binder.prototype.onUrlChange = function (url) { - console.log("URL change detected", url); + log("URL change detected", url); this.parseAnchor(url); this.updateView(); }; @@ -252,7 +252,7 @@ Binder.prototype.precompileNode = function(node, path, factories) { } } - if (!node.getAttribute) console.log(node); + if (!node.getAttribute) log(node); var repeaterExpression = node.getAttribute('ng-repeat'); if (repeaterExpression) { node.removeAttribute('ng-repeat'); |
