code: function splitNs(eventStr) {
          var dot = eventStr.indexOf(".");
          if (dot === -1) {
              return { eventName: eventStr };
          } else {
              return { eventName: eventStr.substring(0, dot), ns: eventStr.substring(dot) };
          }
      }
docs: 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.