aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisko Hevery2010-04-19 14:53:18 -0700
committerMisko Hevery2010-04-19 14:53:18 -0700
commit47ec2187776658ad9ee2a9c71a28ddb860bec43a (patch)
tree6edf2ee18bd2eeb557c6a9ce131536b145e66cdd
parent9f9bdcf3d16de651f85ccfe9e079cb57baca9eb7 (diff)
downloadangular.js-47ec2187776658ad9ee2a9c71a28ddb860bec43a.tar.bz2
fix bug which got introduced by accident
-rw-r--r--src/Compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index 376235f7..a762b5fd 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -136,7 +136,7 @@ Compiler.prototype = {
// process markup for text nodes only
eachTextNode(element, function(textNode){
var text = textNode.text();
- foreach(self.textMarkup, function(markup, name){
+ foreach(self.textMarkup, function(markup){
markup.call(selfApi, text, textNode, element);
});
});
@@ -144,7 +144,7 @@ Compiler.prototype = {
if (directives) {
// Process attributes/directives
- eachAttribute(element, function(value){
+ eachAttribute(element, function(value, name){
foreach(self.attrMarkup, function(markup){
markup.call(selfApi, value, name, element);
});