diff --git a/src/facebox.js b/src/facebox.js index 392adf8..c7e2f2b 100644 --- a/src/facebox.js +++ b/src/facebox.js @@ -72,7 +72,7 @@ if (data.ajax) fillFaceboxFromAjax(data.ajax, klass) else if (data.image) fillFaceboxFromImage(data.image, klass) else if (data.div) fillFaceboxFromHref(data.div, klass) - else if ($.isFunction(data)) data.call($) + else if (typeof data === "function") data.call($) else $.facebox.reveal(data, klass) }