padefla / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

Events w/o descriptions open empty bubbles #343

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the current code in SVN, if you don't have an event description, you get
a clickable event and a empty bubble.

A better option would be to put a test around the
SimileAjax.DOM.registerEvent calls, eg:

if (! /^\s*$/.test(evt.getDescription())) {
  SimileAjax.DOM.registerEvent(result.iconElmtData.elmt, "mousedown",
clickHandler);
  SimileAjax.DOM.registerEvent(result.labelElmtData.elmt, "mousedown",
clickHandler);
} else {
  result.iconElmtData.elmt.style.cursor = "default";
  result.labelElmtData.elmt.style.cursor = "default";
}

Original issue reported on code.google.com by mattd%wh...@gtempaccount.com on 23 Dec 2009 at 7:36

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 10:21

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 10:32