fix bug which got introduced by accident

This commit is contained in:
Misko Hevery 2010-04-19 14:53:18 -07:00
parent 9f9bdcf3d1
commit 47ec218777

View file

@ -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);
});