lib/xml-stream.js
function parseEvent(event) {
  var eventParts = event.match(/^((?:start|end|update)Element|text):?(.*)/);
  if (eventParts === null) {
    return null;
  }
  var eventType = eventParts[1];
  var selector = normalizeSelector(eventParts[2]);
  return {
    selector: selector,
    type: eventType,
    name: (eventParts[2]) ? eventType + ': ' + selector.normalized
                          : eventType
  };
}
function parseEvent(event) {
  var eventParts = event.match(/^((?:start|end|update)Element|text):?(.*)/);
  if (eventParts === null) {
    return null;
  }
  var eventType = eventParts[1];
  var selector = normalizeSelector(eventParts[2]);
  return {
    selector: selector,
    type: eventType,
    name: (eventParts[2]) ? eventType + ': ' + selector.normalized
                          : eventType
  };
}
function parseEvent ( event ) { var eventParts = event . match ( / ^((?:start|end|update)Element|text):?(.*) / ) ; if ( eventParts === null ) { return null ; } var eventType = eventParts [ 1 ] ; var selector = normalizeSelector ( eventParts [ 2 ] ) ; return { selector : selector , type : eventType , name : ( eventParts [ 2 ] ) ? eventType + ': ' + selector . normalized : eventType } ; }
Parses the selector event string and returns event information.
Parses the selector event string and returns event information .