mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Keep the defineProperty fallback in place so it can be used in phantom.js without throwing an error.
This commit is contained in:
2
dist/lodash.js
vendored
2
dist/lodash.js
vendored
@@ -1325,7 +1325,7 @@
|
||||
* @param {Function} func The function to set data on.
|
||||
* @param {*} value The value to set.
|
||||
*/
|
||||
var setBindData = function(func, value) {
|
||||
var setBindData = !defineProperty ? noop : function(func, value) {
|
||||
var descriptor = getObject();
|
||||
descriptor.value = value;
|
||||
defineProperty(func, '__bindData__', descriptor);
|
||||
|
||||
Reference in New Issue
Block a user