How to use the prototype function from swig

Find comprehensive JavaScript swig.prototype code examples handpicked from public code repositorys.

142
143
144
145
146
147
148
149
150
151
152
    layer.load(id);
    return this.compileFile(pathname, options);
};


// 扩展swig内置函数,用于提供bigpipe支持
Swig.prototype._w = Swig.prototype._widget = function (layer, subTemplate, attr, options) {
    var self = this;
    var id = typeof subTemplate === 'function' ?
        (options.filename || options.resolveFrom + '_' + attr.id) :
        subTemplate;
fork icon4
star icon5
watch icon0