view src/djol/ClearTool.js @ 15:b85df31b7e0e

Разработка кнопки выбора координат с карт
author nickolay
date Mon, 18 Sep 2017 21:59:41 +0300
parents f0035923ff3e
children
line wrap: on
line source

define (["dojo/_base/declare", "./_OneshotTool", "implab/safe"] , function(declare, _OneshotTool, safe) {
    return declare([_OneshotTool], {
        tools : null,
        
        constructor : function(opts) {
            safe.mixin(this,opts, ["tools"]);
        },
        
        invoke : function() {
            if (this.tools) {
                this.log("Clear {0} tools", this.tools.length);
                safe.each(this.tools, function(tool) {
                    if (tool.clear)
                        tool.clear();
                });
            }
        }
    });
});