Skip to content

Commit

Permalink
Closing of a model from inside should notify api, closes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamkou committed Dec 23, 2015
1 parent 04b7801 commit f6e03d6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/jquery.fenster.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

// default options
var defaultOptions = {
'href': null,
'selector': null,
'options': null,
'delayOpen': 200,
'callbackOpen': $.noop,
'callbackClose': $.noop
href: null,
selector: null,
options: null,
delayOpen: 200,
callbackOpen: $.noop,
callbackClose: $.noop
};

// the main object
Expand Down Expand Up @@ -108,6 +108,7 @@

setTimeout(function () {
this.setHolder(this.element.data('jqFensterHolder'));
this.getHolder().on('jqFensterCallbackClose', this.close.bind(this));
cbToExecute.call(this);
}.bind(this), this.options.delayOpen);

Expand Down

0 comments on commit f6e03d6

Please sign in to comment.