Guest User

Untitled

a guest
Apr 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // binding module(s) to a YUI instance
  2. // checking also whether it loads successfully
  3.  
  4. YUI({ timeout: 10000 }).use('module', function (Y, result) {
  5. if (!result.success) {
  6. // failed, do something, retry or whatnot
  7. Y.log('Load failure: ' + result.msg, 'warn');
  8. } else {
  9. // do stuff
  10. }
  11. });
Add Comment
Please, Sign In to add comment