From 7a4663e3f99f3b532fce222db269afb748b41079 Mon Sep 17 00:00:00 2001 From: hockeybtm Date: Fri, 15 Aug 2014 12:37:38 -0400 Subject: [PATCH] Update search to accept a source that is an array. When using this version of the file, my old code broke and i could no longer pass an array in as the data. This will allow people to pass in an array as well as an object. --- src/definitions/modules/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index 9b83ab641..5f839e74c 100755 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -243,7 +243,7 @@ $.fn.search = function(parameters) { } else { module.debug("Querying for '" + searchTerm + "'"); - if($.isPlainObject(settings.source)) { + if($.isPlainObject(settings.source) || $.isArray(settings.source)) { module.search.local(searchTerm); } else if(settings.apiSettings) { @@ -811,4 +811,4 @@ $.fn.search.settings = { } }; -})( jQuery, window , document ); \ No newline at end of file +})( jQuery, window , document );