vendor/assets/javascripts/angular-cookies.js in rails-angularjs-1.4.3 vs vendor/assets/javascripts/angular-cookies.js in rails-angularjs-1.4.9
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license AngularJS v1.4.3
+ * @license AngularJS v1.4.9
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
@@ -46,11 +46,11 @@
* - **expires** - `{string|Date}` - String of the form "Wdy, DD Mon YYYY HH:MM:SS GMT"
* or a Date object indicating the exact date/time this cookie will expire.
* - **secure** - `{boolean}` - The cookie will be available only in secured connection.
*
* Note: by default the address that appears in your `<base>` tag will be used as path.
- * This is import so that cookies will be visible for all routes in case html5mode is enabled
+ * This is important so that cookies will be visible for all routes in case html5mode is enabled
*
**/
var defaults = this.defaults = {};
function calcOptions(options) {
@@ -276,10 +276,10 @@
function buildCookieString(name, value, options) {
var path, expires;
options = options || {};
expires = options.expires;
path = angular.isDefined(options.path) ? options.path : cookiePath;
- if (value === undefined) {
+ if (angular.isUndefined(value)) {
expires = 'Thu, 01 Jan 1970 00:00:00 GMT';
value = '';
}
if (angular.isString(expires)) {
expires = new Date(expires);