|
|
@ -116,18 +116,10 @@ Core.prototype._create = function (container) { |
|
|
|
|
|
|
|
var me = this; |
|
|
|
this.on('_change', function (properties) { |
|
|
|
if (properties && properties.queue == true) { |
|
|
|
// redraw once on next tick
|
|
|
|
if (!me._redrawTimer) { |
|
|
|
me._redrawTimer = setTimeout(function () { |
|
|
|
me._redrawTimer = null; |
|
|
|
me._redraw(); |
|
|
|
}, 0) |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
// redraw immediately
|
|
|
|
me._redraw(); |
|
|
|
if (me.itemSet.initialItemSetDrawn && properties && properties.queue == true) { |
|
|
|
me._redraw() |
|
|
|
} else { |
|
|
|
me._origRedraw(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|