From 5a8ad8fe329fc09898ff43a060710265d38393be Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 1 Dec 2010 20:29:54 -0800 Subject: Closes #170. Corrected the behavior of select when options are ng:repeated - Delete $postEval method, as it was a hack --- src/Scope.js | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/Scope.js') 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') { @@ -549,27 +543,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 -- cgit v1.2.3