diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-08-13 13:07:08 +0200 |
---|---|---|
committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-08-13 13:07:08 +0200 |
commit | 3564b57c28d0494646280eaf821abd16e805fe7d (patch) | |
tree | 7e96b70e5395324e0b59a013ff74201f78d8402c | |
parent | 24790bd7fae1bfa56209750eecb50f105888ffe0 (diff) | |
download | xstatic-angular-cookies-3564b57c28d0494646280eaf821abd16e805fe7d.tar.gz |
Version 1.2.16.0
Change-Id: I0ec49ea61c6cc9f4baf4684250a3fdcfe90151c5
-rw-r--r-- | xstatic/pkg/angular_cookies/__init__.py | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | xstatic/pkg/angular_cookies/data/angular-cookies.js | 50 |
2 files changed, 24 insertions, 30 deletions
diff --git a/xstatic/pkg/angular_cookies/__init__.py b/xstatic/pkg/angular_cookies/__init__.py index a03cd3b..173d112 100644 --- a/xstatic/pkg/angular_cookies/__init__.py +++ b/xstatic/pkg/angular_cookies/__init__.py @@ -11,9 +11,9 @@ NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar') # please use a all-lowercase valid python # package name -VERSION = '1.2.1' # version of the packaged files, please use the upstream +VERSION = '1.2.16' # version of the packaged files, please use the upstream # version number -BUILD = '1' # our package build number, so we can release new builds +BUILD = '0' # our package build number, so we can release new builds # with fixes for xstatic stuff. PACKAGE_VERSION = VERSION + '.' + BUILD # version used for PyPi diff --git a/xstatic/pkg/angular_cookies/data/angular-cookies.js b/xstatic/pkg/angular_cookies/data/angular-cookies.js index ba48add..f43d44d 100755..100644 --- a/xstatic/pkg/angular_cookies/data/angular-cookies.js +++ b/xstatic/pkg/angular_cookies/data/angular-cookies.js @@ -1,20 +1,19 @@ /** - * @license AngularJS v1.2.1 - * (c) 2010-2012 Google, Inc. http://angularjs.org + * @license AngularJS v1.2.16 + * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /** - * @ngdoc overview + * @ngdoc module * @name ngCookies * @description * * # ngCookies * - * The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies. + * The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies. * - * {@installModule cookies} * * <div doc-module-components="ngCookies"></div> * @@ -25,21 +24,21 @@ angular.module('ngCookies', ['ng']). /** - * @ngdoc object - * @name ngCookies.$cookies - * @requires $browser + * @ngdoc service + * @name $cookies * * @description * Provides read/write access to browser's cookies. * - * Only a simple Object is exposed and by adding or removing properties to/from - * this object, new cookies are created/deleted at the end of current $eval. + * Only a simple Object is exposed and by adding or removing properties to/from this object, new + * cookies are created/deleted at the end of current $eval. + * The object's properties can only be strings. * * Requires the {@link ngCookies `ngCookies`} module to be installed. * * @example - <doc:example> - <doc:source> + <example> + <file name="index.html"> <script> function ExampleController($cookies) { // Retrieving a cookie @@ -48,8 +47,8 @@ angular.module('ngCookies', ['ng']). $cookies.myFavorite = 'oatmeal'; } </script> - </doc:source> - </doc:example> + </file> + </example> */ factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) { var cookies = {}, @@ -101,12 +100,10 @@ angular.module('ngCookies', ['ng']). for(name in cookies) { value = cookies[name]; if (!angular.isString(value)) { - if (angular.isDefined(lastCookies[name])) { - cookies[name] = lastCookies[name]; - } else { - delete cookies[name]; - } - } else if (value !== lastCookies[name]) { + value = '' + value; + cookies[name] = value; + } + if (value !== lastCookies[name]) { $browser.cookies(name, value); updated = true; } @@ -134,8 +131,8 @@ angular.module('ngCookies', ['ng']). /** - * @ngdoc object - * @name ngCookies.$cookieStore + * @ngdoc service + * @name $cookieStore * @requires $cookies * * @description @@ -152,8 +149,7 @@ angular.module('ngCookies', ['ng']). return { /** * @ngdoc method - * @name ngCookies.$cookieStore#get - * @methodOf ngCookies.$cookieStore + * @name $cookieStore#get * * @description * Returns the value of given cookie key @@ -168,8 +164,7 @@ angular.module('ngCookies', ['ng']). /** * @ngdoc method - * @name ngCookies.$cookieStore#put - * @methodOf ngCookies.$cookieStore + * @name $cookieStore#put * * @description * Sets a value for given cookie key @@ -183,8 +178,7 @@ angular.module('ngCookies', ['ng']). /** * @ngdoc method - * @name ngCookies.$cookieStore#remove - * @methodOf ngCookies.$cookieStore + * @name $cookieStore#remove * * @description * Remove given cookie |