mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
Revert "fix ng:include issue introduced by a5eb3ed1"
This reverts commit17ee0f031a. this anda5eb3ed1introduced scope leakage that can't be resolved until we fix up scope relationships and eval propagation. I'm reverting both this anda5eb3ed1until we can properly address the issue.
This commit is contained in:
@@ -635,12 +635,7 @@ angularWidget('ng:include', function(element){
|
||||
if (src) {
|
||||
xhr('GET', src, function(code, response){
|
||||
element.html(response);
|
||||
if (useScope) {
|
||||
childScope = useScope;
|
||||
} else {
|
||||
childScope = createScope(scope);
|
||||
scope.$onEval(childScope.$eval);
|
||||
}
|
||||
childScope = useScope || createScope(scope);
|
||||
compiler.compile(element)(element, childScope);
|
||||
childScope.$init();
|
||||
scope.$eval(onloadExp);
|
||||
|
||||
Reference in New Issue
Block a user