Built motion from commit 76eb00b9e.|1.0.24
[motion.git] / public / bower_components / lodash / fp / _convertBrowser.js
index fbd2174..bde030d 100644 (file)
@@ -1,9 +1,10 @@
 var baseConvert = require('./_baseConvert');
 
 /**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last version.
+ * Converts `lodash` to an immutable auto-curried iteratee-first data-last
+ * version with conversion `options` applied.
  *
- * @param {Function} lodash The lodash function.
+ * @param {Function} lodash The lodash function to convert.
  * @param {Object} [options] The options object. See `baseConvert` for more details.
  * @returns {Function} Returns the converted `lodash`.
  */
@@ -11,7 +12,7 @@ function browserConvert(lodash, options) {
   return baseConvert(lodash, lodash, options);
 }
 
-if (typeof _ == 'function') {
+if (typeof _ == 'function' && typeof _.runInContext == 'function') {
   _ = browserConvert(_.runInContext());
 }
 module.exports = browserConvert;