Skip to content

Instantly share code, notes, and snippets.

@hjzheng
Last active December 15, 2016 04:39
Show Gist options
  • Save hjzheng/08133bb682581e0f87fc469b962cc23a to your computer and use it in GitHub Desktop.
Save hjzheng/08133bb682581e0f87fc469b962cc23a to your computer and use it in GitHub Desktop.
//::LICENSE:://
(function(global){

//::SIGNAL_BINDING_JS:://

//::SIGNAL_JS:://

    //exports to multiple environments
    if(typeof define === 'function' && define.amd){ //AMD
        define(function () { return signals; });
    } else if (typeof module !== 'undefined' && module.exports){ //node
        module.exports = signals;
    } else { //browser
        //use string because of Google closure compiler ADVANCED_MODE
        /*jslint sub:true */
        global['signals'] = signals;
    }

}(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment