vendor/assets/javascripts/angular-cookies.js in angularjs-rails-1.0.6.2 vs vendor/assets/javascripts/angular-cookies.js in angularjs-rails-1.0.7

- old
+ new

@@ -1,7 +1,7 @@ /** - * @license AngularJS v1.0.6 + * @license AngularJS v1.0.7 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { 'use strict'; @@ -143,10 +143,11 @@ * * @param {string} key Id to use for lookup. * @returns {Object} Deserialized cookie value. */ get: function(key) { - return angular.fromJson($cookies[key]); + var value = $cookies[key]; + return value ? angular.fromJson(value) : value; }, /** * @ngdoc method * @name ngCookies.$cookieStore#put