/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree.
*/
(function(f) { if (typeof exports === 'object' && typeof module !== 'undefined') {
module.exports = f(require('resource://devtools/client/shared/vendor/react.js')); /* global define */
} elseif (typeof define === 'function' && define.amd) {
define(['resource://devtools/client/shared/vendor/react.js'], f);
} else { var g; if (typeof window !== 'undefined') {
g = window;
} elseif (typeof global !== 'undefined') {
g = global;
} elseif (typeof self !== 'undefined') {
g = self;
} else {
g = this;
}
if (typeof g.React === 'undefined') { throw Error('React module should be required before ReactDOMFactories');
}
g.ReactDOMFactories = f(g.React);
}
})(function(React) { /** * Create a factory that creates HTML tag elements.
*/ function createDOMFactory(type) { var factory = React.createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be // easily accessed on elements. E.g. `<Foo />.type === Foo`. // This should not be named `constructor` since this may not be the function // that created the element, and it may not even be a constructor.
factory.type = type; return factory;
};
// due to wrapper and conditionals at the top, this will either become // `module.exports ReactDOMFactories` if that is available, // otherwise it will be defined via `define(['react'], ReactDOMFactories)` // if that is available, // otherwise it will be defined as global variable. return ReactDOMFactories;
});
Messung V0.5
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.