Keep the defineProperty fallback in place so it can be used in phantom.js without throwing an error.

This commit is contained in:
John-David Dalton
2013-09-15 17:29:18 -07:00
parent 40204e8133
commit 9f1f2a4845
2 changed files with 45 additions and 45 deletions

2
dist/lodash.js vendored
View File

@@ -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);