Sha256: 6dc52ce39667a5f4afaf9e1080faece0e4b82e9c9feb831ad3e9ada072f7e9af

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

include('../background.js');

/**
 * @class
 */
uki.background.Multi = uki.newClass({
    init: function() {
        this._bgs = Array.prototype.slice.call(arguments, 0);
    },
    attachTo: function(comp) {
        for (var i=0; i < this._bgs.length; i++) {
            this._bgs[i].attachTo(comp);
        };
    },
    detach: function() {
        for (var i=0; i < this._bgs.length; i++) {
            this._bgs[i].detach();
        };
    }
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
uki-1.1.1 frameworks/uki/src/uki-core/background/multi.js
uki-1.1.0 frameworks/uki/src/uki-core/background/multi.js
uki-1.0.2 frameworks/uki/src/uki-core/background/multi.js
uki-1.0.1 frameworks/uki/src/uki-core/background/multi.js
uki-1.0.0 frameworks/uki/src/uki-core/background/multi.js