From 5ce6a75927d81b9fff1eeff9b933f0ad93f12801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cle=CC=81ment=20Jobeili?= Date: Wed, 10 Aug 2011 11:39:30 +0200 Subject: [PATCH] Using live events The main problem was when you load HTML with ajax, when you have a .facebox element in this loaded html, the click was not working --- src/facebox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/facebox.js b/src/facebox.js index 7d0e39d..39fdd93 100644 --- a/src/facebox.js +++ b/src/facebox.js @@ -153,7 +153,7 @@ return false } - return this.bind('click.facebox', clickHandler) + return this.live('click.facebox', clickHandler) } /*