Skip to content

Commit

Permalink
Add trigger event for every callFilter. Fix #246
Browse files Browse the repository at this point in the history
  • Loading branch information
nyroDev committed Oct 17, 2014
1 parent 18403ea commit b7ae3ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/jquery.nyroModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,11 @@ jQuery(function($, undefined) {
// return an array of all return of callbacks; keys are filters name
_callFilters: function(fct, prm) {
this.getInternal()._debug(fct, prm);
if (this.opener && this.opener.length) {
this.opener.trigger(fct+'.nyroModal', [this, prm]);
} else {
$b.trigger(fct+'.nyroModal', [this, prm]);
}
var ret = [],
self = this;
$.each(this.filters, function(i, f) {
Expand Down

2 comments on commit b7ae3ac

@xiehongyang
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哇,下载试试

@wlclass
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢

Please sign in to comment.