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
(function(root,factory){if(typeofdefine==='function'&&define.amd){// AMD. Register as an anonymous module.define([],factory);}elseif(typeofmodule==='object'&&module.exports){// Node. Does not work with strict CommonJS, but// only CommonJS-like environments that support module.exports,// like Node.module.exports=factory();}else{// Browser globals (root is window)root.returnExports=factory();}}(this,function(){varRiotControl={_stores: [],addStore: function(store){this._stores.push(store);}};['on','one','off','trigger'].forEach(function(api){RiotControl[api]=function(){varargs=[].slice.call(arguments);this._stores.forEach(function(el){el[api].apply(null,args);});};});returnRiotControl;}));
The text was updated successfully, but these errors were encountered:
I picked a UMD code snippet
No need to shim RiotControl in requirejs anymore
What do you think about it?
The text was updated successfully, but these errors were encountered: