modal
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -104,2 +104,3 @@ module.exports = modal | ||
modal[transitionFn]({ top: window.innerHeight }, settings.fx ? 200 : 0) | ||
this.trigger('close') | ||
this.stopListening() | ||
@@ -106,0 +107,0 @@ $(document).off('keyup', keyup) |
{ | ||
"name": "modal", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A modal window for the browser.", | ||
@@ -5,0 +5,0 @@ "main": "modal.js", |
@@ -120,2 +120,10 @@ require('./test-env') | ||
it('should emit a close event', function (done) { | ||
var m = modal({ fx: false }) | ||
m.on('close', function () { | ||
done() | ||
}) | ||
m.close() | ||
}) | ||
}) | ||
@@ -122,0 +130,0 @@ |
15748
371