Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0bd9b2e

Browse files
hereblursupasak
authored and
supasak
committed
fix($resource): Delete $cancelRequest from toJSON()
result.toJSON() still include $cancelRequest to the JSON output. just simply delete it.
1 parent 8d394de commit 0bd9b2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngResource/resource.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ angular.module('ngResource', ['ng']).
636636
var data = extend({}, this);
637637
delete data.$promise;
638638
delete data.$resolved;
639+
delete data.$cancelRequest;
639640
return data;
640641
};
641642

0 commit comments

Comments
 (0)