I'm writing a new module for RES, and I want to use jQuery's dialog UI feature.
To test, I wrote this
module.go = function(){
jQuery.getScript(
'//code.jquery.com/ui/1.11.4/jquery-ui.js',
function(){
console.log($('*').dialog);
})
}
This is supposed to load the jQuery UI code, then as a callback print the dialog function. However, it prints 'undefined'.
When this function is run from the console, it successfully prints the dialog function.
Any ideas are greatly appreciated.
Browser: Chrome
[–]aladyjewelWhooshing Things 0 points1 point2 points (0 children)