aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPhil Crosby2012-06-17 00:15:12 -0700
committerPhil Crosby2012-06-17 00:15:24 -0700
commit5de493d0740835e0d7dbd0e90bcc679df835547f (patch)
tree246e5f622ede9b68ba0470be54f7e24a4213f7cc /lib
parentc7a4dbbda25c732844543397e4552570ecc0332d (diff)
downloadvimium-5de493d0740835e0d7dbd0e90bcc679df835547f.tar.bz2
Use the browser's built-in bind() instead of our proxy()
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.coffee5
1 files changed, 0 insertions, 5 deletions
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 = ->