Mercurial > pub > ImplabJs
comparison src/djol/ClearTool.js @ 34:27e8e9e38e07 default tip
Слияние
| author | nickolay |
|---|---|
| date | Wed, 05 Jun 2019 20:44:15 +0300 |
| parents | 8af8e840dd49 1dc2fd263b90 |
| children |
comparison
equal
deleted
inserted
replaced
| 33:8af8e840dd49 | 34:27e8e9e38e07 |
|---|---|
| 1 define (["dojo/_base/declare", "./_OneshotTool", "implab/safe"] , function(declare, _OneshotTool, safe) { | |
| 2 return declare([_OneshotTool], { | |
| 3 tools : null, | |
| 4 | |
| 5 constructor : function(opts) { | |
| 6 safe.mixin(this,opts, ["tools"]); | |
| 7 }, | |
| 8 | |
| 9 invoke : function() { | |
| 10 if (this.tools) { | |
| 11 this.log("Clear {0} tools", this.tools.length); | |
| 12 safe.each(this.tools, function(tool) { | |
| 13 if (tool.clear) | |
| 14 tool.clear(); | |
| 15 }); | |
| 16 } | |
| 17 } | |
| 18 }); | |
| 19 }); |
