src/utils/EventDispatcher.js
function splitNs(eventStr) {
        var dot = eventStr.indexOf(".");
        if (dot === -1) {
            return { eventName: eventStr };
        } else {
            return { eventName: eventStr.substring(0, dot), ns: eventStr.substring(dot) };
        }
    }
function splitNs(eventStr) {
        var dot = eventStr.indexOf(".");
        if (dot === -1) {
            return { eventName: eventStr };
        } else {
            return { eventName: eventStr.substring(0, dot), ns: eventStr.substring(dot) };
        }
    }
function splitNs ( eventStr ) { var dot = eventStr . indexOf ( "." ) ; if ( dot === - 1 ) { return { eventName : eventStr } ; } else { return { eventName : eventStr . substring ( 0 , dot ) , ns : eventStr . substring ( dot ) } ; } }
Split "event.namespace" string into its two parts; both parts are optional.
@param {string} eventName Event name and/or trailing ".namespace"
@return {!{event:string, ns:string}} Uses "" for missing parts.
Split event . namespace string into its two parts ; both parts are optional .