From c27aba4354c69c4a67fab587a59a8079cc9edc91 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 3 Nov 2011 21:14:04 -0700 Subject: refactor(api): remove type augmentation BREAK: - remove angular.[Object/Array/String/Function] - in templates [].$filter(predicate) and friends need to change to [] | filter:predicate --- example/personalLog/personalLog.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'example/personalLog') diff --git a/example/personalLog/personalLog.js b/example/personalLog/personalLog.js index acaf371e..7be233cb 100644 --- a/example/personalLog/personalLog.js +++ b/example/personalLog/personalLog.js @@ -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; -})(); \ No newline at end of file +})(); -- cgit v1.2.3