You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my environment, MacOX, Chrome, following potion of code of 'backone-bootstrap-modal.js' is not working as expected, the code handling 'hidden' event is not executed
close: function(){varself=this,$el=this.$el;//Check if the modal should stay openif(this._preventClose){this._preventClose=false;return;}$el.modal('hide');$el.one('hidden',function(){self.remove();self.trigger('hidden');});
the reason is that the event bind is called after "modal('hide')" or to say the event bind is execute after the event had happened, i temporally worked around it by switch the order like following
i dont know if orignal code works on other environment , i think it would be good to bind the event at the initialization, like in the open or render method
The text was updated successfully, but these errors were encountered:
stephanebachelier
added a commit
to stephanebachelier/backbone.bootstrap-modal
that referenced
this issue
Sep 11, 2012
in my environment, MacOX, Chrome, following potion of code of 'backone-bootstrap-modal.js' is not working as expected, the code handling 'hidden' event is not executed
the reason is that the event bind is called after "modal('hide')" or to say the event bind is execute after the event had happened, i temporally worked around it by switch the order like following
i dont know if orignal code works on other environment , i think it would be good to bind the event at the initialization, like in the open or render method
The text was updated successfully, but these errors were encountered: