aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
authorIgor Minar2010-09-23 05:37:17 +0800
committerMisko Hevery2010-09-23 17:23:52 +0800
commitacbcfbaf30f73f25df1c45da41132091e7022240 (patch)
treecbf6fea04061974197a5f6c9b9c983ce18b054ff /src/AngularPublic.js
parenta8931c9021fa15190927b913a66fb34deedf9e20 (diff)
downloadangular.js-acbcfbaf30f73f25df1c45da41132091e7022240.tar.bz2
$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
Diffstat (limited to 'src/AngularPublic.js')
-rw-r--r--src/AngularPublic.js7
1 files changed, 4 insertions, 3 deletions
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,