Version 1.2.16.0

Change-Id: I0ec49ea61c6cc9f4baf4684250a3fdcfe90151c5
This commit is contained in:
Radomir Dopieralski 2014-08-13 13:07:08 +02:00
parent 24790bd7fa
commit 3564b57c28
2 changed files with 24 additions and 30 deletions

View File

@ -11,9 +11,9 @@ NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar')
# please use a all-lowercase valid python # please use a all-lowercase valid python
# package name # 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 # 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. # with fixes for xstatic stuff.
PACKAGE_VERSION = VERSION + '.' + BUILD # version used for PyPi PACKAGE_VERSION = VERSION + '.' + BUILD # version used for PyPi

50
xstatic/pkg/angular_cookies/data/angular-cookies.js vendored Executable file → Normal file
View File

@ -1,20 +1,19 @@
/** /**
* @license AngularJS v1.2.1 * @license AngularJS v1.2.16
* (c) 2010-2012 Google, Inc. http://angularjs.org * (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT * License: MIT
*/ */
(function(window, angular, undefined) {'use strict'; (function(window, angular, undefined) {'use strict';
/** /**
* @ngdoc overview * @ngdoc module
* @name ngCookies * @name ngCookies
* @description * @description
* *
* # ngCookies * # 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> * <div doc-module-components="ngCookies"></div>
* *
@ -25,21 +24,21 @@
angular.module('ngCookies', ['ng']). angular.module('ngCookies', ['ng']).
/** /**
* @ngdoc object * @ngdoc service
* @name ngCookies.$cookies * @name $cookies
* @requires $browser
* *
* @description * @description
* Provides read/write access to browser's cookies. * Provides read/write access to browser's cookies.
* *
* Only a simple Object is exposed and by adding or removing properties to/from * Only a simple Object is exposed and by adding or removing properties to/from this object, new
* this object, new cookies are created/deleted at the end of current $eval. * 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. * Requires the {@link ngCookies `ngCookies`} module to be installed.
* *
* @example * @example
<doc:example> <example>
<doc:source> <file name="index.html">
<script> <script>
function ExampleController($cookies) { function ExampleController($cookies) {
// Retrieving a cookie // Retrieving a cookie
@ -48,8 +47,8 @@ angular.module('ngCookies', ['ng']).
$cookies.myFavorite = 'oatmeal'; $cookies.myFavorite = 'oatmeal';
} }
</script> </script>
</doc:source> </file>
</doc:example> </example>
*/ */
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) { factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
var cookies = {}, var cookies = {},
@ -101,12 +100,10 @@ angular.module('ngCookies', ['ng']).
for(name in cookies) { for(name in cookies) {
value = cookies[name]; value = cookies[name];
if (!angular.isString(value)) { if (!angular.isString(value)) {
if (angular.isDefined(lastCookies[name])) { value = '' + value;
cookies[name] = lastCookies[name]; cookies[name] = value;
} else { }
delete cookies[name]; if (value !== lastCookies[name]) {
}
} else if (value !== lastCookies[name]) {
$browser.cookies(name, value); $browser.cookies(name, value);
updated = true; updated = true;
} }
@ -134,8 +131,8 @@ angular.module('ngCookies', ['ng']).
/** /**
* @ngdoc object * @ngdoc service
* @name ngCookies.$cookieStore * @name $cookieStore
* @requires $cookies * @requires $cookies
* *
* @description * @description
@ -152,8 +149,7 @@ angular.module('ngCookies', ['ng']).
return { return {
/** /**
* @ngdoc method * @ngdoc method
* @name ngCookies.$cookieStore#get * @name $cookieStore#get
* @methodOf ngCookies.$cookieStore
* *
* @description * @description
* Returns the value of given cookie key * Returns the value of given cookie key
@ -168,8 +164,7 @@ angular.module('ngCookies', ['ng']).
/** /**
* @ngdoc method * @ngdoc method
* @name ngCookies.$cookieStore#put * @name $cookieStore#put
* @methodOf ngCookies.$cookieStore
* *
* @description * @description
* Sets a value for given cookie key * Sets a value for given cookie key
@ -183,8 +178,7 @@ angular.module('ngCookies', ['ng']).
/** /**
* @ngdoc method * @ngdoc method
* @name ngCookies.$cookieStore#remove * @name $cookieStore#remove
* @methodOf ngCookies.$cookieStore
* *
* @description * @description
* Remove given cookie * Remove given cookie