|
|
@ -115,6 +115,18 @@ ItemRange.prototype.redraw = function() { |
|
|
|
this.dirty = true; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// set all other fields as data- attributes
|
|
|
|
var auxiliaryData = Object.keys(this.data); |
|
|
|
|
|
|
|
for (var i in auxiliaryData) { |
|
|
|
var c = auxiliaryData[i]; |
|
|
|
if (['start', 'end', 'content', 'title', 'id', 'className', 'group', 'type'].indexOf(c) < 0) { |
|
|
|
dom.content.setAttribute('data-' + c, this.data[c]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// recalculate size
|
|
|
|
if (this.dirty) { |
|
|
|
// determine from css whether this box has overflow
|
|
|
|