aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-12-07 11:47:24 -0800
committerMisko Hevery2010-12-08 14:36:51 -0800
commite5e69d9b90850eb653883f52c76e28dd870ee067 (patch)
treea6b8fdbffebe9e6a51a0a33327da56db4a860527 /src/Scope.js
parentfa722447f89e0215463cb39dfd1532189057fea8 (diff)
downloadangular.js-e5e69d9b90850eb653883f52c76e28dd870ee067.tar.bz2
Remove RegExp parser
- RegExp parser is rearly used, feature, and one should not have RegExps in views anyways, so we are removing it BACKWARD INCOMPATIBLE CHANGE!!!
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Scope.js b/src/Scope.js
index 203507a3..27df770d 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -66,7 +66,7 @@ function getterFn(path){
code += 'if(!s) return s;\n' +
'l=s;\n' +
's=s' + key + ';\n' +
- 'if(typeof s=="function") s = function(){ return l'+key+'.apply(l, arguments); };\n';
+ 'if(typeof s=="function" && !(s instanceof RegExp)) s = function(){ return l'+key+'.apply(l, arguments); };\n';
if (key.charAt(1) == '$') {
// special code for super-imposed functions
var name = key.substr(2);