mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
changed the eval for ie to be able to return a function
This commit is contained in:
parent
1f05621509
commit
b5195b8f67
2 changed files with 3 additions and 3 deletions
|
|
@ -72,8 +72,8 @@ function getterFn(path){
|
|||
}
|
||||
});
|
||||
code += ' return self;\n}';
|
||||
fn = eval('(' + code + ')');
|
||||
fn.toString = function(){ return code; };
|
||||
fn = eval('fn = ' + code);
|
||||
fn["toString"] = function(){ return code; };
|
||||
|
||||
return getterFnCache[path] = fn;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ function sortedHtml(element) {
|
|||
attr.name !='style' &&
|
||||
attr.name.substr(0, 6) != 'jQuery') {
|
||||
// in IE we need to check for all of these.
|
||||
if (!/ng:\d+/.exec(attr.name))
|
||||
if (!/ng-\d+/.exec(attr.name))
|
||||
attrs.push(' ' + attr.name + '="' + attr.value + '"');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue