Skip to content

Commit

Permalink
before callback called before disabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
floranpagliai committed Nov 16, 2023
1 parent e29e0ff commit 96d1df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.brokk.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@
},
fire: function () {
var plugin = this;
this.callback(this.options.before);
if (this.options.fireEvent === $.fn.brokk.fireEvents.DISABLED) {
return;
}
this.callback(this.options.before);
if (this.options.requestUrl === null) {
console.warn('No requestUrl defined.');
return;
Expand Down

0 comments on commit 96d1df1

Please sign in to comment.