Commits

Luke Plant committed 47b5364

Fixed potential bug (code caused exceptions, seemed to work)

  • Participants
  • Parent commits 069fb7c

Comments (0)

Files changed (1)

semanticeditor/media/semanticeditor/javascript/wymeditor/plugins/semantic/wymeditor.semantic.js

 
 PresentationControls.prototype.has_style = function(sect_id, style) {
     var styles = this.presentation_info[sect_id];
+    if (styles == undefined)
+        return false;
     for (var i = 0; i < styles.length; i++) {
         if (flattenPresStyle(styles[i]) == flattenPresStyle(style)) {
             return true;