Skip to content

Commit

Permalink
Merge pull request #19 from guttmann/js-fix
Browse files Browse the repository at this point in the history
Fix exception when this.data() returns undefined
  • Loading branch information
unclecheese committed Feb 28, 2014
2 parents 36b69ad + 27465cf commit 8434039
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions javascript/display_logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@
},

getMasters: function() {
return this.data('display-logic-masters').split(",");
var masters = this.data('display-logic-masters');

return (masters) ? masters.split(",") : [];
}

});
Expand Down Expand Up @@ -222,4 +224,4 @@
});

//})
})(jQuery);
})(jQuery);

0 comments on commit 8434039

Please sign in to comment.