From 9c0225512c63ebfc37e6408cc155d9da1fe682c9 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 26 Oct 2010 15:35:58 -0700 Subject: fixes IE related failures, and form submit event handling in ie --- example/personalLog/personalLog.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'example/personalLog') 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 -- cgit v1.2.3