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.Dismiss alert
if(typeofdefine==='function'&&define.amd){// AMD. Register as an anonymous module.// eslint-disable-next-line no-undefdefine([],function(){root.Swipe=factory();// Cannot set property 'Swipe' of undefinedreturnroot.Swipe;});
somtimes, judgement of define and define.amd may be true, but can not promise that this is an object, it may be undefined, then there will be an error.
suggestion like :
root=root||{};// make sure that root is an object
The text was updated successfully, but these errors were encountered:
Error in:
somtimes, judgement of
define
anddefine.amd
may betrue
, but can not promise thatthis
is an object, it may beundefined
, then there will be an error.suggestion like :
The text was updated successfully, but these errors were encountered: