Mercurial > pub > ImplabJs
annotate src/djol/declare-style.js @ 19:8332e287d552
fix (click on cospas)
| author | nickolay |
|---|---|
| date | Wed, 04 Oct 2017 21:05:21 +0300 |
| parents | f0035923ff3e |
| children | 1d72fddc319a |
| rev | line source |
|---|---|
| 8 | 1 define(["dojo/_base/declare","implab/safe"],function(declare, safe){ |
| 2 return function(base, proto){ | |
| 3 var cls = declare(base,proto); | |
| 4 | |
| 5 var factory = function() { | |
| 6 var me = this; | |
| 7 cls.apply(me,arguments); | |
| 8 var fn = function() { | |
| 9 return me.getFeatureStyle.apply(me,arguments); | |
| 10 }; | |
| 11 fn.style = me; | |
| 12 fn.styleFunction = fn; | |
| 13 return fn; | |
| 14 }; | |
| 15 | |
| 16 factory.styleClass = cls; | |
| 17 factory.prototype = cls.prototype; | |
| 18 return factory; | |
| 19 }; | |
| 20 }); |
