vendor/assets/javascripts/angular-resource.js in angularjs-rails-1.5.0 vs vendor/assets/javascripts/angular-resource.js in angularjs-rails-1.5.5

- old
+ new

@@ -1,11 +1,11 @@ /** - * @license AngularJS v1.5.0 + * @license AngularJS v1.5.5 * (c) 2010-2016 Google, Inc. http://angularjs.org * License: MIT */ -(function(window, angular, undefined) {'use strict'; +(function(window, angular) {'use strict'; var $resourceMinErr = angular.$$minErr('$resource'); // Helper functions and regex to lookup a dotted path on an object // stopping at undefined/null. The path must be composed of ASCII @@ -709,10 +709,10 @@ }, function(response) { (error || noop)(response); return $q.reject(response); }); - promise.finally(function() { + promise['finally'](function() { value.$resolved = true; if (!isInstanceCall && cancellable) { value.$cancelRequest = angular.noop; $timeout.cancel(numericTimeoutPromise); timeoutDeferred = numericTimeoutPromise = httpConfig.timeout = null;