Skip to content
Browse files

Remove changes in angular-resource.js

  • Loading branch information...
1 parent 2a30c69 commit e8bbf98d04920082d545089b0d1a7edc3cf20bdf @andresmoschini committed Aug 6, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 source/CommonJobs/CommonJobs.Mvc.UI/app/lib/angular/angular-resource.js
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) {

0 comments on commit e8bbf98

Please sign in to comment.
Something went wrong with that request. Please try again.