From 8e1b670d5b262f70fdbf4c4b01d3109d54a12ac5 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 19 Apr 2010 12:54:39 -0700 Subject: fix ie bug with .text() on jqlite --- src/Compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Compiler.js') diff --git a/src/Compiler.js b/src/Compiler.js index a762b5fd..376235f7 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){ + foreach(self.textMarkup, function(markup, name){ markup.call(selfApi, text, textNode, element); }); }); @@ -144,7 +144,7 @@ Compiler.prototype = { if (directives) { // Process attributes/directives - eachAttribute(element, function(value, name){ + eachAttribute(element, function(value){ foreach(self.attrMarkup, function(markup){ markup.call(selfApi, value, name, element); }); -- cgit v1.2.3