aboutsummaryrefslogtreecommitdiffstats
path: root/src/markups.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-07 15:15:14 -0800
committerMisko Hevery2011-02-16 00:48:22 -0500
commite2154cbc0b9265bea04ce328879d4e9bf1c67c51 (patch)
treefd49a2d08f54b72997872e190ba9300f80c14a15 /src/markups.js
parent0a5c00abf8664fdbdc5d16b13adb1989b4531cdf (diff)
downloadangular.js-e2154cbc0b9265bea04ce328879d4e9bf1c67c51.tar.bz2
remove dom manipulation API from compiler
Diffstat (limited to 'src/markups.js')
-rw-r--r--src/markups.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/markups.js b/src/markups.js
index 89cc0d05..99e1cca7 100644
--- a/src/markups.js
+++ b/src/markups.js
@@ -38,10 +38,10 @@ angularTextMarkup('{{}}', function(text, textNode, parentElement) {
forEach(parseBindings(text), function(text){
var exp = binding(text);
if (exp) {
- newElement = self.element('span');
+ newElement = jqLite('<span>');
newElement.attr('ng:bind', exp);
} else {
- newElement = self.text(text);
+ newElement = jqLite(document.createTextNode(text));
}
if (msie && text.charAt(0) == ' ') {
newElement = jqLite('<span>&nbsp;</span>');