aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-12-01 20:29:54 -0800
committerMisko Hevery2010-12-02 22:45:57 -0800
commit5a8ad8fe329fc09898ff43a060710265d38393be (patch)
tree95058036d40b1dd993e2a9c4094ebd34b2751707 /src/Scope.js
parent41d5938883a3d06ffe8a88a51efd8d1896f7d747 (diff)
downloadangular.js-5a8ad8fe329fc09898ff43a060710265d38393be.tar.bz2
Closes #170. Corrected the behavior of select when options are ng:repeated
- Delete $postEval method, as it was a hack
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Scope.js b/src/Scope.js
index 09779453..203507a3 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -243,7 +243,6 @@ function createScope(parent, providers, instanceCache) {
parent = Parent.prototype = (parent || {});
var instance = new Parent();
var evalLists = {sorted:[]};
- var postList = [], postHash = {}, postId = 0;
extend(instance, {
'this': instance,
@@ -371,11 +370,6 @@ function createScope(parent, providers, instanceCache) {
instance.$tryEval(queue[j].fn, queue[j].handler);
}
}
- while(postList.length) {
- fn = postList.shift();
- delete postHash[fn.$postEvalId];
- instance.$tryEval(fn);
- }
} else if (type === $function) {
return exp.call(instance);
} else if (type === 'string') {
@@ -552,27 +546,6 @@ function createScope(parent, providers, instanceCache) {
/**
* @workInProgress
* @ngdoc function
- * @name angular.scope.$postEval
- * @function
- */
- $postEval: function(expr) {
- if (expr) {
- var fn = expressionCompile(expr);
- var id = fn.$postEvalId;
- if (!id) {
- id = '$' + instance.$id + "_" + (postId++);
- fn.$postEvalId = id;
- }
- if (!postHash[id]) {
- postList.push(postHash[id] = fn);
- }
- }
- },
-
-
- /**
- * @workInProgress
- * @ngdoc function
* @name angular.scope.$become
* @function
* @deprecated This method will be removed before 1.0