Is there a way to call inc of obj without bind?
function callIt(callback){
callback();
}
var obj = {
count: 0,
inc: function(){
this.count++;
}
};
callIt(obj.inc.bind(obj));
obj.count;// 1
Question is relevant to me because of older IE-versions that do not support the method bind.