From 5de493d0740835e0d7dbd0e90bcc679df835547f Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Sun, 17 Jun 2012 00:15:12 -0700 Subject: Use the browser's built-in bind() instead of our proxy() --- lib/utils.coffee | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib') diff --git a/lib/utils.coffee b/lib/utils.coffee index c83a6cf8..6a846ae0 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -103,11 +103,6 @@ Utils = string = string.trim() if (Utils.isUrl(string)) then Utils.createFullUrl(string) else Utils.createSearchUrl(string) -# Execute a function with the given value for "this". Equivalent to jQuery.proxy(). */ -Function.prototype.proxy = (self) -> - fn = this - return -> fn.apply(self, arguments) - # This creates a new function out of an existing function, where the new function takes fewer arguments. # This allows us to pass around functions instead of functions + a partial list of arguments. Function.prototype.curry = -> -- cgit v1.2.3