diff --git a/src/vendor/core/createArrayFrom.js b/src/vendor/core/createArrayFromMixed.js similarity index 90% rename from src/vendor/core/createArrayFrom.js rename to src/vendor/core/createArrayFromMixed.js index 5d95068218..41c364731d 100644 --- a/src/vendor/core/createArrayFrom.js +++ b/src/vendor/core/createArrayFromMixed.js @@ -6,7 +6,7 @@ * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * @providesModule createArrayFrom + * @providesModule createArrayFromMixed * @typechecks */ @@ -57,10 +57,10 @@ function hasArrayNature(obj) { * * This is mostly useful idiomatically: * - * var createArrayFrom = require('createArrayFrom'); + * var createArrayFromMixed = require('createArrayFromMixed'); * * function takesOneOrMoreThings(things) { - * things = createArrayFrom(things); + * things = createArrayFromMixed(things); * ... * } * @@ -72,7 +72,7 @@ function hasArrayNature(obj) { * @param {*} obj * @return {array} */ -function createArrayFrom(obj) { +function createArrayFromMixed(obj) { if (!hasArrayNature(obj)) { return [obj]; } else if (Array.isArray(obj)) { @@ -82,4 +82,4 @@ function createArrayFrom(obj) { } } -module.exports = createArrayFrom; +module.exports = createArrayFromMixed; diff --git a/src/vendor/core/createNodesFromMarkup.js b/src/vendor/core/createNodesFromMarkup.js index 1768294012..90d1fd4d50 100644 --- a/src/vendor/core/createNodesFromMarkup.js +++ b/src/vendor/core/createNodesFromMarkup.js @@ -14,7 +14,7 @@ var ExecutionEnvironment = require('ExecutionEnvironment'); -var createArrayFrom = require('createArrayFrom'); +var createArrayFromMixed = require('createArrayFromMixed'); var getMarkupWrap = require('getMarkupWrap'); var invariant = require('invariant'); @@ -73,10 +73,10 @@ function createNodesFromMarkup(markup, handleScript) { handleScript, 'createNodesFromMarkup(...): Unexpected