obviate the need for stub definition of define when using vanilla /js require

This commit is contained in:
John Bender 2012-01-04 14:21:57 -08:00
parent ea01f9f960
commit 0b1829967d
2 changed files with 9 additions and 0 deletions

View file

@ -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',

View 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()();
};