mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
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:
@@ -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;
|
||||
})();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user