Comment & todo about rendering order of tool's icons

This commit is contained in:
Vince 2012-09-16 00:48:53 +02:00
parent e52f0cbe6e
commit 3afbf1c0e9

View File

@ -6,6 +6,7 @@
this.toolInstances = {
"simplePen" : new pskl.drawingtools.SimplePen(),
"mirrorPen" : new pskl.drawingtools.MirrorPen(),
"eraser" : new pskl.drawingtools.Eraser(),
"paintBucket" : new pskl.drawingtools.PaintBucket(),
"stroke" : new pskl.drawingtools.Stroke(),
@ -68,6 +69,7 @@
*/
ns.ToolController.prototype.createToolMarkup_ = function() {
var currentTool, toolMarkup = '';
// TODO(vincz): Tools rendering order is not enforced by the data stucture (this.toolInstances), fix that.
for (var toolKey in this.toolInstances) {
currentTool = this.toolInstances[toolKey];
toolMarkup += '<li class="tool-icon ' + currentTool.toolId + '" data-tool-id="' + currentTool.toolId +