diff src/djol/ClearTool.js @ 34:27e8e9e38e07 default tip

Слияние
author nickolay
date Wed, 05 Jun 2019 20:44:15 +0300
parents 8af8e840dd49 1dc2fd263b90
children
line wrap: on
line diff
--- a/src/djol/ClearTool.js	Wed Jun 05 17:44:17 2019 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-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();
-                });
-            }
-        }
-    });
-});
\ No newline at end of file