FIX: exception in an interval

This commit is contained in:
Sam 2014-08-19 11:12:56 +10:00
parent 107ac88f15
commit 1a2070b4d9

View file

@ -105,7 +105,7 @@ export default DiscourseController.extend(ModalFunctionality, {
"menubar=no,status=no,height=" + height + ",width=" + width + ",left=" + left + ",top=" + top);
var self = this;
var timer = setInterval(function() {
if(w.closed) {
if(!w || w.closed) {
clearInterval(timer);
self.set('authenticate', null);
}