row.mouseover(function(source, title, type, body) {
return function() {
- // source[0] is un-jquerying.
- // TODO(konigsberg): when tooltip is jquery, dump this.
- palette.tooltip.show(source[0], title, type, body);
+ palette.tooltip.show(source, title, type, body);
};
} (row, opt, type, Dygraph.OPTIONS_REFERENCE[opt].description))
.mouseout(function() { palette.tooltip.hide(); })
* Write to input elements.
*/
Palette.prototype.write = function(hash) {
+ if (!hash) {
+ return;
+ }
var results = {};
for (var opt in this.model) {
if (this.model.hasOwnProperty(opt)) {