File tree Expand file tree Collapse file tree 3 files changed +1
-52
lines changed Expand file tree Collapse file tree 3 files changed +1
-52
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,4 @@ import fetch from 'isomorphic-fetch';
3
3
4
4
ES6Promise . polyfill ( ) ;
5
5
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
-
24
6
export default fetch ;
Original file line number Diff line number Diff line change 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
- }
18
1
export default fetch ;
19
2
Original file line number Diff line number Diff line change @@ -2,21 +2,5 @@ import ES6Promise from 'es6-promise';
2
2
import fetch from 'isomorphic-fetch' ;
3
3
4
4
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
+
22
6
export default fetch ;
You can’t perform that action at this time.
0 commit comments