Tests: code cleanup

This commit is contained in:
Chris Adams 2013-07-02 13:56:55 -04:00
parent 59a254bea6
commit d782da411e

View File

@ -14,7 +14,7 @@
});
},
teardown: function () {
if (!!viewer && viewer.close) {
if (viewer && viewer.close) {
viewer.close();
}
@ -189,7 +189,6 @@
var closeHandler = function() {
viewer.removeHandler('close', closeHandler);
ok(!viewer.source, 'no source');
$('#example').empty();
ok(true, 'Close event was sent');
ok(!viewer._updateRequestId, 'timer is off');
setTimeout(function() {