Sha256: 842e078c95e4bfd0e3526185a2b0f6f7baf98d7be64e5bff0bd81318932ea0c6

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 Bytes

Contents

Lanes.Extensions = {

    instances: {}

    register: (klass)->
        instance = new klass
        this.instances[klass.prototype.identifier] = instance
        instance.onRegistered?()

    fireOnAvailable: (application)->
        instance.onAvailable?(application) for identifier, instance of @instances

    setBootstrapData: (bootstrap_data)->
        for identifier,data of bootstrap_data
            instance.setBootstrapData(data) if instance = this.instances[identifier]

}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lanes-0.0.3 client/javascripts/extension/Extensions.coffee
lanes-0.0.2 client/javascripts/extension/Extensions.coffee
lanes-0.0.1 client/javascripts/extension/Extensions.coffee