Changed the angular.compile(element)(scope[, cloneAttachNode])

This commit is contained in:
Misko Hevery
2011-02-13 16:13:21 -08:00
parent cdc093a463
commit c90abf057b
10 changed files with 57 additions and 44 deletions

View File

@@ -47,7 +47,7 @@ describe('compiler', function(){
};
var template = compiler.compile(e);
expect(log).toEqual("found");
scope = template(angular.scope(), e).scope;
scope = template(angular.scope()).scope;
expect(e.hasClass('ng-directive')).toEqual(true);
expect(log).toEqual("found:init");
});
@@ -84,7 +84,7 @@ describe('compiler', function(){
var template = this.compile(element);
return function(marker) {
this.$onEval(function() {
marker.after(template(angular.scope(), true).view);
marker.after(template(angular.scope(), noop).view);
});
};
};