|
@ -115,6 +115,18 @@ ItemRange.prototype.redraw = function() { |
|
|
this.dirty = true; |
|
|
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
|
|
|
// recalculate size
|
|
|
if (this.dirty) { |
|
|
if (this.dirty) { |
|
|
// determine from css whether this box has overflow
|
|
|
// determine from css whether this box has overflow
|
|
|