mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-05 05:04:46 +00:00
obviate the need for stub definition of define when using vanilla /js require
This commit is contained in:
parent
b3d1b49008
commit
0c006605d1
2 changed files with 9 additions and 0 deletions
|
|
@ -2,6 +2,10 @@
|
|||
$type = 'text/javascript';
|
||||
$files = array(
|
||||
'../LICENSE-INFO.txt',
|
||||
// note that define is only included here as a means
|
||||
// to revert to the pre async include, and should not be
|
||||
// used in other build methods
|
||||
'jquery.mobile.define.js',
|
||||
'jquery.ui.widget.js',
|
||||
'jquery.mobile.widget.js',
|
||||
'jquery.mobile.media.js',
|
||||
|
|
|
|||
5
js/jquery.mobile.define.js
Normal file
5
js/jquery.mobile.define.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// creates the define method on window, only used where async loading
|
||||
// is not desired in the docs and experiments
|
||||
window.define = function(){
|
||||
Array.prototype.slice.call(arguments).pop()();
|
||||
};
|
||||
Loading…
Reference in a new issue