From cfa4bdf4602efd9b29adc9bcf73be04924d4026f Mon Sep 17 00:00:00 2001 From: Prasanth Guruprasad Date: Fri, 28 Feb 2014 19:43:58 +0530 Subject: [PATCH] fix #67 | provide a way to clear the queries array --- jquery.dynatable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jquery.dynatable.js b/jquery.dynatable.js index d08aba3..c9502b7 100644 --- a/jquery.dynatable.js +++ b/jquery.dynatable.js @@ -1137,6 +1137,12 @@ return dt; }; + this.clear = function() { + settings.dataset.queries = {}; + // not sure what the event arg should be if I trigger teh :removed event + return dt; + } + this.run = function() { for (query in settings.dataset.queries) { if (settings.dataset.queries.hasOwnProperty(query)) {