aboutsummaryrefslogtreecommitdiffstats
path: root/example/personalLog/personalLog.js
diff options
context:
space:
mode:
authorIgor Minar2010-10-23 21:40:27 -0700
committerIgor Minar2010-10-26 21:58:00 -0700
commit01c52e92b120eea498e0352a42a489d55e7d9979 (patch)
tree07e5e7d83e783a62e5333f1c22415dd3ac397900 /example/personalLog/personalLog.js
parent943377a091bd7521d33e680dcd2141f7f9fa10c4 (diff)
downloadangular.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.js6
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);
};