use ES5 bind() instead of lang.bind()

This commit is contained in:
Fabian Jakobs 2010-12-15 11:43:02 +01:00
commit 69095379c3
5 changed files with 43 additions and 35 deletions

View file

@ -82,12 +82,6 @@ exports.escapeRegExp = function(str) {
return str.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1');
};
exports.bind = function(fcn, context) {
return function() {
return fcn.apply(context, arguments);
};
};
exports.deferredCall = function(fcn) {
var timer = null;