mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Ensure baseCreate works in ExtendScript.
This commit is contained in:
@@ -1975,14 +1975,14 @@
|
|||||||
* @returns {Object} Returns the new object.
|
* @returns {Object} Returns the new object.
|
||||||
*/
|
*/
|
||||||
var baseCreate = (function() {
|
var baseCreate = (function() {
|
||||||
function Object() {}
|
function object() {}
|
||||||
return function(prototype) {
|
return function(prototype) {
|
||||||
if (isObject(prototype)) {
|
if (isObject(prototype)) {
|
||||||
Object.prototype = prototype;
|
object.prototype = prototype;
|
||||||
var result = new Object;
|
var result = new object;
|
||||||
Object.prototype = null;
|
object.prototype = null;
|
||||||
}
|
}
|
||||||
return result || context.Object();
|
return result || {};
|
||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user