Revert "switched to canonical two-space indentation in __bind helper"
This reverts commit 6a40807330
.
This commit is contained in:
parent
79fff367c2
commit
7082000e66
|
@ -1770,16 +1770,16 @@ UTILITIES =
|
|||
# Create a function bound to the current value of "this".
|
||||
bind: '''
|
||||
(Function.prototype.bind ? Function.prototype.call.bind(Function.prototype.bind) : function(fn, me){
|
||||
return function bound(){
|
||||
if (!(this instanceof bound))
|
||||
return fn.apply(me, arguments);
|
||||
var ctor = function(){};
|
||||
ctor.prototype = fn.prototype;
|
||||
var obj = new ctor();
|
||||
fn.apply(obj, arguments);
|
||||
return obj;
|
||||
};
|
||||
})
|
||||
return function bound(){
|
||||
if (!(this instanceof bound))
|
||||
return fn.apply(me, arguments);
|
||||
var ctor = function(){};
|
||||
ctor.prototype = fn.prototype;
|
||||
var obj = new ctor();
|
||||
fn.apply(obj, arguments);
|
||||
return obj;
|
||||
};
|
||||
})
|
||||
'''
|
||||
|
||||
# Discover if an item is in an array.
|
||||
|
|
Loading…
Reference in New Issue