From 3564b57c28d0494646280eaf821abd16e805fe7d Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Wed, 13 Aug 2014 13:07:08 +0200 Subject: [PATCH] Version 1.2.16.0 Change-Id: I0ec49ea61c6cc9f4baf4684250a3fdcfe90151c5 --- xstatic/pkg/angular_cookies/__init__.py | 4 +- .../angular_cookies/data/angular-cookies.js | 50 ++++++++----------- 2 files changed, 24 insertions(+), 30 deletions(-) mode change 100755 => 100644 xstatic/pkg/angular_cookies/data/angular-cookies.js 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 old mode 100755 new mode 100644 index ba48add..f43d44d --- 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} * *
* @@ -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 - - + + - - + + */ 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