You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
When using AMD modules, lozad should be a named AMD module, as one has to interact with it
Current Behavior
It is an anonymous AMD function
Possible Solution
define('lozad',[],function(){..})
instead of
define(function(){..})
Steps to Reproduce (for bugs)
Context
I need to import loadz in another module to initialize it.
Quote from jQuery:
// Register as a named AMD module, since jQuery can be concatenated with other
// files that may use define, but not via a proper concatenation script that
// understands anonymous AMD modules. A named AMD is safest and most robust
// way to register. Lowercase jquery is used because AMD module names are
// derived from file names, and jQuery is normally delivered in a lowercase
// file name. Do this after creating the global so that if an AMD module wants
// to call noConflict to hide this version of jQuery, it will work.
Expected Behavior
When using AMD modules, lozad should be a named AMD module, as one has to interact with it
Current Behavior
It is an anonymous AMD function
Possible Solution
instead of
Steps to Reproduce (for bugs)
Context
I need to import loadz in another module to initialize it.
Quote from jQuery:
Tested on:
Applies to all AMD environments
The text was updated successfully, but these errors were encountered: