zepheira/exhibit3 — pull request #69 by karger (2012-07-31 20:36:14+00:00)
Title: 2012 08 01 add class

Replaced .attr('class',X) with .addClass(X) to avoid overwriting classes in various places where there is a possibility that the node being updated might have some classes previously assigned. For example this allows a web designer to assign their own classes to view and facet tags which should simplify their css work.

Left some .attr() calls alone where it is clear that there are no existing classes (ie node has just been created). We might consider switching to addClass in all cases. Conceivably there is a performance penalty but it is likely small.

Noticed/fixed one bug (calling jQueryObj.html(jQueryObj) which should have been jqueryObj.append(jQueryobj))