diff options
Diffstat (limited to 'example')
| -rw-r--r-- | example/personalLog/personalLog.js | 10 | 
1 files changed, 8 insertions, 2 deletions
| 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 +})(); | 
