From b46ff7563d0d799a5a2c18030fd6557c657cfeb3 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Sat, 10 Jul 2010 14:14:25 +1000 Subject: [PATCH] Use in operator to check for onsearch support --- output/js/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/js/application.js b/output/js/application.js index f92a143..7103684 100644 --- a/output/js/application.js +++ b/output/js/application.js @@ -30,7 +30,7 @@ jQuery(function() { var input = $('#search input'); if(input.length > 0) { // Setup incremental search on Articles pages - if(input.get(0).hasOwnProperty('onsearch')) { + if('onsearch' in input.get(0)) { console.log("Using search event for search"); $('#search label').hide(); input.bind("search", function() { refresh_search(this) });