diff options
| author | Igor Minar | 2010-10-23 21:40:27 -0700 |
|---|---|---|
| committer | Igor Minar | 2010-10-26 21:58:00 -0700 |
| commit | 01c52e92b120eea498e0352a42a489d55e7d9979 (patch) | |
| tree | 07e5e7d83e783a62e5333f1c22415dd3ac397900 /example/personalLog/personalLog.js | |
| parent | 943377a091bd7521d33e680dcd2141f7f9fa10c4 (diff) | |
| download | angular.js-01c52e92b120eea498e0352a42a489d55e7d9979.tar.bz2 | |
Adding e2e tests for the PersonalLog app
- added scenario runner
- added scenario specs
- cookie cleaning DSL
- making rmLog independent on ordering in the view
Diffstat (limited to 'example/personalLog/personalLog.js')
| -rw-r--r-- | example/personalLog/personalLog.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/personalLog/personalLog.js b/example/personalLog/personalLog.js index da946a6f..acaf371e 100644 --- a/example/personalLog/personalLog.js +++ b/example/personalLog/personalLog.js @@ -51,10 +51,10 @@ function LogCtrl($cookieStore) { /** * Persistently removes a log from logs. - * @param {number} msgIdx Index of the log to remove. + * @param {object} log The log to remove. */ - this.rmLog = function(msgIdx) { - logs.splice(msgIdx,1); + this.rmLog = function(log) { + angular.Array.remove(logs, log); $cookieStore.put(LOGS, logs); }; |
