Browse files

Update event/_posts/1900-01-01-Z-proxy.md

Fix example in documentation for `$.proxy`.

The current example has the parameters backwards, and results in:

    TypeError: expected function

when run.
  • Loading branch information...
1 parent a5d96ad commit 086ae4618ef9dce211f8003a416588c6a29ee769 @vandrijevik vandrijevik committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 event/_posts/1900-01-01-Z-proxy.md
View
2 event/_posts/1900-01-01-Z-proxy.md
@@ -15,5 +15,5 @@ var obj = {name: 'Zepto'},
handler = function(){ console.log("hello from + ", this.name) }
// 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 %}

0 comments on commit 086ae46

Please sign in to comment.