Skip to content

Commit 7534b9a

Browse files
author
Aamod Pisat
committed
updated code changes
1 parent 4eabcb5 commit 7534b9a

File tree

3 files changed

+1
-52
lines changed

3 files changed

+1
-52
lines changed

src/runtime/node/http.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,4 @@ import fetch from 'isomorphic-fetch';
33

44
ES6Promise.polyfill();
55

6-
/**
7-
* @method spread
8-
* @description return the promise with the arguments.
9-
* @example
10-
* blogQuery.find().spread()
11-
*/
12-
function spread() {
13-
if (Promise.prototype.spread) return;
14-
Promise.prototype.spread = function (fn) {
15-
return this.then(function (args) {
16-
return fn.apply(fn, args);
17-
});
18-
};
19-
}
20-
if (typeof Promise !== 'undefined') {
21-
spread();
22-
}
23-
246
export default fetch;

src/runtime/react-native/http.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
1-
/**
2-
* @method spread
3-
* @description return the promise with the arguments.
4-
* @example
5-
* blogQuery.find().spread()
6-
*/
7-
function spread() {
8-
if (Promise.prototype.spread) return;
9-
Promise.prototype.spread = function (fn) {
10-
return this.then(function (args) {
11-
return fn.apply(fn, args);
12-
});
13-
};
14-
}
15-
if (typeof Promise !== 'undefined') {
16-
spread();
17-
}
181
export default fetch;
192

src/runtime/web/http.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,5 @@ import ES6Promise from 'es6-promise';
22
import fetch from 'isomorphic-fetch';
33

44
ES6Promise.polyfill();
5-
/**
6-
* @method spread
7-
* @description return the promise with the arguments.
8-
* @example
9-
* blogQuery.find().spread()
10-
*/
11-
function spread() {
12-
if (Promise.prototype.spread) return;
13-
Promise.prototype.spread = function (fn) {
14-
return this.then(function (args) {
15-
return fn.apply(fn, args);
16-
});
17-
};
18-
}
19-
if (typeof Promise !== 'undefined') {
20-
spread();
21-
}
5+
226
export default fetch;

0 commit comments

Comments
 (0)