[Bootstrap]: Fix Null Case Issue.

This fixes the case in which `this` evaluates as null and throws an
error in TravisCI.
This commit is contained in:
Brock Whittaker
2016-10-14 14:57:23 -07:00
committed by Tim Abbott
parent 2aa9512506
commit 0e3332d86e

View File

@@ -1033,7 +1033,9 @@
}
, removeBackdrop: function () {
this.$backdrop.remove()
if (this !== null) {
this.$backdrop.remove();
}
this.$backdrop = null
}