File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.4.0" ,
4
4
"description" : " AMD plugins for RequireJS" ,
5
5
"dependencies" : {
6
- "dojo " : " >=1.9 .1" ,
6
+ "jquery " : " >=2 .1" ,
7
7
"requirejs" : " 2.1.x"
8
8
},
9
9
"devDependencies" : {
10
- "jquery" : " >=2.1"
11
10
},
12
11
"keywords" : [
13
12
" requirejs" ,
Original file line number Diff line number Diff line change 30
30
31
31
define ( [
32
32
"./has" ,
33
- "dojo/Deferred " ,
33
+ "./jquery!deferred " ,
34
34
"module"
35
- ] , function ( has , Deferred , module ) {
35
+ ] , function ( has , $ , module ) {
36
36
"use strict" ;
37
37
38
38
has . add ( "event-link-onload-api" , function ( global ) {
@@ -45,10 +45,11 @@ define([
45
45
/**
46
46
* Return a promise that resolves when the specified link has finished loading.
47
47
* @param {HTMLLinkElement } link - The link element to be notified for.
48
- * @returns {module:dojo/promise/Promise } - A promise.
48
+ * @returns {module:jQuery/Promise } - A promise.
49
+ * @private
49
50
*/
50
51
var listenOnLoad = function ( link ) {
51
- var def = new Deferred ( ) ,
52
+ var def = new $ . Deferred ( ) ,
52
53
loadHandler = has ( "event-link-onload-api" ) ?
53
54
function ( ) {
54
55
// We're using "readystatechange" because IE happily support both
@@ -71,7 +72,7 @@ define([
71
72
} ;
72
73
73
74
loadHandler ( ) ;
74
- return def . promise ;
75
+ return def . promise ( ) ;
75
76
} ;
76
77
77
78
var loadCss = {
You can’t perform that action at this time.
0 commit comments