view src/djol/declare-style.js @ 28:d796bbbe558c

added gradle
author cin
date Sat, 23 Jun 2018 21:50:11 +0300
parents 1d72fddc319a
children
line wrap: on
line source

define(["dojo/_base/declare","implab/safe"],function(declare, safe){
    return function(base, proto){
        var cls = declare(base,proto);
        
        var factory = /** @this */ function() {
            var me = this;
            cls.apply(me,arguments);
            var fn = function() {
                return me.getFeatureStyle.apply(me,arguments);
            };
            fn.style = me;
            fn.styleFunction = fn;
            return fn;
        };
        
        factory.styleClass = cls; 
        factory.prototype = cls.prototype;
        return factory;
    };
});