Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove changes in angular-resource.js

  • Loading branch information...
commit e8bbf98d04920082d545089b0d1a7edc3cf20bdf 1 parent 2a30c69
@andresmoschini authored
View
7 source/CommonJobs/CommonJobs.Mvc.UI/app/lib/angular/angular-resource.js
@@ -365,14 +365,11 @@ angular.module('ngResource', ['ng']).
}
var value = this instanceof Resource ? this : (action.isArray ? [] : new Resource(data));
- console.debug("http");
- window.lastHttp = $http({
+ $http({
method: action.method,
url: route.url(extend({}, extractParams(data), action.params || {}, params)),
data: data
- });
- //Me gustaría que window.lastHttp tenga un método cancel
- window.lastHttp.then(function (response) {
+ }).then(function (response) {
var data = response.data;
if (data) {
Please sign in to comment.
Something went wrong with that request. Please try again.