Skip to content

Commit dc0b1f6

Browse files
committed
fix #348
1 parent 5a81d75 commit dc0b1f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_site/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@
14511451
},
14521452

14531453
remove: function() {
1454-
this.el.remove();
1454+
if ( this.el !== null ) { this.el.remove(); }
14551455
this.fire("removed", this );
14561456
this.removeAllObservers();
14571457
this.el = null;

src/app/ui/abstractWidget/abstractWidget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333

3434
remove: function() {
35-
this.el.remove();
35+
if ( this.el !== null ) { this.el.remove(); }
3636
this.fire("removed", this );
3737
this.removeAllObservers();
3838
this.el = null;

0 commit comments

Comments
 (0)