refactor(api): remove type augmentation

BREAK:
  - remove angular.[Object/Array/String/Function]
  - in templates [].$filter(predicate) and friends need to change to [] | filter:predicate
This commit is contained in:
Misko Hevery
2011-11-03 21:14:04 -07:00
parent dd9151e522
commit c27aba4354
11 changed files with 35 additions and 596 deletions

View File

@@ -54,7 +54,13 @@ function LogCtrl($cookieStore) {
* @param {object} log The log to remove.
*/
this.rmLog = function(log) {
angular.Array.remove(logs, log);
for ( var i = 0; i < logs.length; i++) {
if (log === logs[i]) {
logs.splice(i, 1);
break;
}
}
$cookieStore.put(LOGS, logs);
};
@@ -73,4 +79,4 @@ LogCtrl.$inject = ['$cookieStore'];
//export
example.personalLog.LogCtrl = LogCtrl;
})();
})();