Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // binding module(s) to a YUI instance
- // checking also whether it loads successfully
- YUI({ timeout: 10000 }).use('module', function (Y, result) {
- if (!result.success) {
- // failed, do something, retry or whatnot
- Y.log('Load failure: ' + result.msg, 'warn');
- } else {
- // do stuff
- }
- });
Add Comment
Please, Sign In to add comment