remove dom manipulation API from compiler

This commit is contained in:
Misko Hevery
2011-02-07 15:15:14 -08:00
parent 0a5c00abf8
commit e2154cbc0b
4 changed files with 7 additions and 7 deletions

View File

@@ -178,9 +178,6 @@ Compiler.prototype = {
template,
selfApi = {
compile: bind(self, self.compile),
comment:function(text) {return jqLite(document.createComment(text));},
element:function(type) {return jqLite(document.createElement(type));},
text:function(text) {return jqLite(document.createTextNode(text));},
descend: function(value){ if(isDefined(value)) descend = value; return descend;},
directives: function(value){ if(isDefined(value)) directives = value; return directives;},
scope: function(value){ if(isDefined(value)) template.newScope = template.newScope || value; return template.newScope;}