mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00:00
- 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
37 lines
887 B
JavaScript
37 lines
887 B
JavaScript
var browserSingleton;
|
|
angularService('$browser', function($log){
|
|
if (!browserSingleton) {
|
|
browserSingleton = new Browser(
|
|
window.location,
|
|
jqLite(window.document),
|
|
jqLite(window.document.getElementsByTagName('head')[0]),
|
|
XHR,
|
|
$log);
|
|
browserSingleton.startPoller(50, function(delay, fn){setTimeout(delay,fn);});
|
|
browserSingleton.bind();
|
|
}
|
|
return browserSingleton;
|
|
}, {inject:['$log']});
|
|
|
|
extend(angular, {
|
|
'element': jqLite,
|
|
'compile': compile,
|
|
'scope': createScope,
|
|
'copy': copy,
|
|
'extend': extend,
|
|
'equals': equals,
|
|
'foreach': foreach,
|
|
'noop':noop,
|
|
'bind':bind,
|
|
'toJson': toJson,
|
|
'fromJson': fromJson,
|
|
'identity':identity,
|
|
'isUndefined': isUndefined,
|
|
'isDefined': isDefined,
|
|
'isString': isString,
|
|
'isFunction': isFunction,
|
|
'isObject': isObject,
|
|
'isNumber': isNumber,
|
|
'isArray': isArray
|
|
});
|
|
|