betajs/betajs-flash

View on GitHub
src/js/registry.js

Summary

Maintainability
A
0 mins
Test Coverage
Scoped.define("module:FlashClassRegistry", [ "base:Class" ], function(Class,
        scoped) {
    return Class.extend({
        scoped : scoped
    }, {

        interfaces : {},

        register : function(cls, methods, statics) {
            this.interfaces[cls] = {
                methods: methods || {},
                statics: statics || {}
            };
        },
        
        get: function (cls) {
            return this.interfaces[cls];
        }

    });
});