B2G/gecko/services/sync/tps/extensions/mozmill/resource/modules/mozelement.js
/**
 * createInstance()
 *
 * Returns an new instance of a MozMillElement
 * The type of the element is automatically determined
 */
createInstance()
Returns an new instance of a MozMillElement
The type of the element is automatically determined
createInstance () Returns an new instance of a MozMillElement The type of the element is automatically determined
function createInstance(locatorType, locator, elem) {
  if (elem) {
    var args = {"element":elem};
    for (var i = 0; i < subclasses.length; ++i) {
      if (subclasses[i].isType(elem)) {
        return new subclasses[i](locatorType, locator, args);
      }
    }
    if (MozMillElement.isType(elem)) return new MozMillElement(locatorType, locator, args);
  }
  throw new Error("could not find element " + locatorType + ": " + locator);
}
function createInstance ( locatorType , locator , elem ) { if ( elem ) { var args = { "element" : elem } ; for ( var i = 0 ; i < subclasses . length ; ++ i ) { if ( subclasses [ i ] . isType ( elem ) ) { return new subclasses [ i ] ( locatorType , locator , args ) ; } } if ( MozMillElement . isType ( elem ) ) return new MozMillElement ( locatorType , locator , args ) ; } throw new Error ( "could not find element " + locatorType + ": " + locator ) ; }
createInstance()
 Returns an new instance of a MozMillElement
 The type of the element is automatically determined
createInstance () Returns an new instance of a MozMillElement The type of the element is automatically determined