From acbcfbaf30f73f25df1c45da41132091e7022240 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 23 Sep 2010 05:37:17 +0800 Subject: $cookies service refactoring - remove obsolete code in tests - add warning logs when maximum cookie limits (as specified via RFC 2965) were reached - non-string values will now get dropped - after each update $cookies hash will reflect the actual state of browser cookies this means that if browser drops some cookies due to cookie overflow, $cookies will reflect that - $sessionStore got renamed to $cookieStore to avoid name conflicts with html5's sessionStore --- src/AngularPublic.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/AngularPublic.js') diff --git a/src/AngularPublic.js b/src/AngularPublic.js index 40425b8d..617a7e2e 100644 --- a/src/AngularPublic.js +++ b/src/AngularPublic.js @@ -1,16 +1,17 @@ var browserSingleton; -angularService('$browser', function browserFactory(){ +angularService('$browser', function($log){ if (!browserSingleton) { browserSingleton = new Browser( window.location, jqLite(window.document), jqLite(window.document.getElementsByTagName('head')[0]), - XHR); + XHR, + $log); browserSingleton.startPoller(50, function(delay, fn){setTimeout(delay,fn);}); browserSingleton.bind(); } return browserSingleton; -}); +}, {inject:['$log']}); extend(angular, { 'element': jqLite, -- cgit v1.2.3