How to use the xui.Com function in xui

To help you get started, we’ve selected a few xui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github linb / CrossUI / xui / js / Module.js View on Github external
Initialize:function(){
        var ns=this;
        xui.launch = function(cls, onEnd, lang, theme, showUI, parent, subId, onCreated, onDomReady){
            ns.load.apply(ns, [cls, function(err, module){
                if(module)module.setHost(window, xui.ini.rootModuleName);
                xui.tryF(onEnd, [err, module], module);
            }, lang, theme, showUI, parent, subId, onCreated, onDomReady]);
        };
        // compitable
        ns['xui.Com']=ns.prototype['xui.Com']=1;
        xui.Com=ns;
        ns.$activeClass$='xui.Module';

        xui.broadcast = function(id, msg1, msg2, msg3, msg4, msg5,  msg6, msg7, msg8, msg9){
            var arr=xui.toArr(arguments);
            xui.arr.each(xui.Module._cache,function(o){
                 o.fireEvent('onGlobalMessage',  arr);
            });
        };
    },
    After:function(){
github linb / CrossUI / xui2.0 / xui / js / Module.js View on Github external
Initialize:function(){
        var ns=this;
        xui.launch = function(cls, onEnd, lang, theme, showUI, parent, subId, onCreated, onDomReady){
            ns.load.apply(ns, [cls, function(err, module){
                if(module)module.setHost(window, xui.ini.rootModuleName);
                xui.tryF(onEnd, [err, module], module);
            }, lang, theme, showUI, parent, subId, onCreated, onDomReady]);
        };
        // compitable
        ns['xui.Com']=ns.prototype['xui.Com']=1;
        xui.Com=ns;
        ns.$activeClass$='xui.Module';

        xui.broadcast = function(id, msg1, msg2, msg3, msg4, msg5){
            xui.arr.each(xui.Module._cache,function(o){
                 o.fireEvent('onGlobalMessage',  [id, msg1, msg2, msg3, msg4, msg5]);
            });
        };
    },
    After:function(){
github linb / CrossUI / xui1.4 / xui / js / Module.js View on Github external
Initialize:function(){
        var ns=this;
        xui.launch = function(cls, onEnd, lang, theme, showUI){
            ns.load.apply(ns, arguments);
        };
        // compitable
        ns['xui.Com']=ns.prototype['xui.Com']=1;
        xui.Com=ns;
    },
    After:function(){