Skip to content

Commit 6633fec

Browse files
authored
Merge pull request #702 from ryandeba/patch-2
add "typeof" to fix bug with variable inspection
2 parents d555196 + 9e8fda4 commit 6633fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/view/SelectComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ module.exports = {
101101
this.updateAttached();
102102
}
103103
var model = $(trg).data('model');
104-
if (model != 'undefined') {
104+
if (typeof model != 'undefined') {
105105

106106
if (!model.get("selectable")) {
107107
var comp = model && model.parent();

0 commit comments

Comments
 (0)