Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix example in documentation for $.proxy()

The current example has the parameters backwards
  • Loading branch information...
commit 4d8209755b29e9280170d11cb8771a24878bc5de 1 parent a5d96ad
@vandrijevik vandrijevik authored mislav committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  event/_posts/
2  event/_posts/
@@ -15,5 +15,5 @@ var obj = {name: 'Zepto'},
handler = function(){ console.log("hello from + ", }
// ensures that the handler will be executed in the context of `obj`:
-$(document).on('click', $.proxy(obj, handler))
+$(document).on('click', $.proxy(handler, obj))
{% endhighlight %}
Please sign in to comment.
Something went wrong with that request. Please try again.