File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/* global heimdall */
2
- /* globals najax */
2
+ /* globals najax jQuery */
3
3
/**
4
4
@module ember-data
5
5
*/
6
6
7
- import Ember from 'ember' ;
8
7
import fetch from 'fetch' ;
9
8
import serializeQueryParams from 'ember-fetch/utils/serialize-query-params' ;
10
9
import determineBodyPromise from 'ember-fetch/utils/determine-body-promise' ;
@@ -32,6 +31,7 @@ import { warn } from '@ember/debug';
32
31
import { DEBUG } from '@glimmer/env' ;
33
32
34
33
const Promise = EmberPromise ;
34
+ const jQ = typeof jQuery !== 'undefined' ? jQuery : undefined ;
35
35
36
36
/**
37
37
The REST adapter allows your store to communicate with an HTTP server by
@@ -303,7 +303,7 @@ const RESTAdapter = Adapter.extend(BuildURLMixin, {
303
303
304
304
useFetch : computed ( function ( ) {
305
305
let ENV = getOwner ( this ) . resolveRegistration ( 'config:environment' ) ;
306
- return ( ENV && ENV . _JQUERY_INTEGRATION ) === false || Ember . $ === undefined ;
306
+ return ( ENV && ENV . _JQUERY_INTEGRATION ) === false || jQ === undefined ;
307
307
} ) ,
308
308
309
309
/**
@@ -1039,7 +1039,7 @@ const RESTAdapter = Adapter.extend(BuildURLMixin, {
1039
1039
@param {Object } options jQuery ajax options to be used for the ajax request
1040
1040
*/
1041
1041
_ajaxRequest ( options ) {
1042
- Ember . $ . ajax ( options ) ;
1042
+ jQ . ajax ( options ) ;
1043
1043
} ,
1044
1044
1045
1045
/**
You can’t perform that action at this time.
0 commit comments