Skip to content

Commit cfa4bdf

Browse files
committed
fix alfajango#67 | provide a way to clear the queries array
1 parent 53a5671 commit cfa4bdf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jquery.dynatable.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,12 @@
11371137
return dt;
11381138
};
11391139

1140+
this.clear = function() {
1141+
settings.dataset.queries = {};
1142+
// not sure what the event arg should be if I trigger teh :removed event
1143+
return dt;
1144+
}
1145+
11401146
this.run = function() {
11411147
for (query in settings.dataset.queries) {
11421148
if (settings.dataset.queries.hasOwnProperty(query)) {

0 commit comments

Comments
 (0)