zepheira/exhibit3 — Issue #41: Bug between Exhibit.Backwards.Attributes.getAttribute and Exhibit._Impl.prototype.configureFromDOM
Author: karger
Created: 2012-02-17 06:19:13+00:00
State: open

Exhibit.Backwards.Attributes.getAttribute expects a single DOM element as its first argument. Instead it is receiving a jquery object and breaking. The problem starts from

Exhibit._Impl.prototype.configureFromDOM which invokes

panel = Exhibit.ControlPanel.createFromDOM(
$("

").prependTo(document.body),
null,
uiContext
);

the first (jquery object) argument is passed to getConfigurationFromDOM which passes it to Exhibit.Backwards.Attributes.getAttribute which breaks.