aboutsummaryrefslogtreecommitdiffstats
path: root/example/personalLog/personalLog.js
diff options
context:
space:
mode:
authorMisko Hevery2010-10-26 15:35:58 -0700
committerMisko Hevery2010-10-26 16:33:59 -0700
commit9c0225512c63ebfc37e6408cc155d9da1fe682c9 (patch)
tree4973f6c57b801c71cbc93d7d993887ff6d3f9558 /example/personalLog/personalLog.js
parent40d7e66f408eaaa66efd8d7934ab2eb3324236a1 (diff)
downloadangular.js-9c0225512c63ebfc37e6408cc155d9da1fe682c9.tar.bz2
fixes IE related failures, and form submit event handling in ie
Diffstat (limited to 'example/personalLog/personalLog.js')
-rw-r--r--example/personalLog/personalLog.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/personalLog/personalLog.js b/example/personalLog/personalLog.js
index c0273036..da946a6f 100644
--- a/example/personalLog/personalLog.js
+++ b/example/personalLog/personalLog.js
@@ -1,5 +1,5 @@
/**
- * @fileOverview Very simple personal log demo application to demostrate angular functionality,
+ * @fileOverview Very simple personal log demo application to demonstrate angular functionality,
* especially:
* - the MVC model
* - testability of controllers
@@ -46,7 +46,7 @@ function LogCtrl($cookieStore) {
logs.push(log);
$cookieStore.put(LOGS, logs);
self.newMsg = '';
- }
+ };
/**
@@ -56,16 +56,16 @@ function LogCtrl($cookieStore) {
this.rmLog = function(msgIdx) {
logs.splice(msgIdx,1);
$cookieStore.put(LOGS, logs);
- }
+ };
/**
* Persistently removes all logs.
*/
this.rmLogs = function() {
- logs.splice(0);
+ logs.splice(0, logs.length);
$cookieStore.remove(LOGS);
- }
+ };
}
//inject