Skip to content

Commit

Permalink
QBuilder: fixed the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romanchyla committed Jul 30, 2015
1 parent a977633 commit 200d117
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/js/components/query_builder/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,10 @@ define([
*
*/
isDirty: function(queryToCompare) {

if (!this.$el.data('queryBuilder'))
return false;

try {
var formQ = this.getQuery();

Expand Down Expand Up @@ -647,6 +651,13 @@ define([
this.$el.on('keypress.input', function(ev) {
throttled();
});
},

destroy: function() {

this.$el.off('change.queryBuilder');
this.$el.off('click.queryBuilder');
this.$el.off('keypress.input');
}

});
Expand Down
1 change: 0 additions & 1 deletion test/mocha/qb-suite.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
define([], function() {

var tests = [
'/widgets/search_bar_widget.spec.js',
'/components/query_builder/plugin.spec.js',
'/components/query_builder/rules_translator.spec.js',
'/components/query_builder/translation_query2ui.spec.js',
Expand Down

0 comments on commit 200d117

Please sign in to comment.