mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
Changed the angular.compile(element)(scope[, cloneAttachNode])
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user