neyric/wireit

View on GitHub
sandbox/grouping/js/Container.js.temp

Summary

Maintainability
Test Coverage
/**
 * Some utility classes to provide grouping in the WiringEditor
 * @module grouping-plugin
 */


/**
 * Add methods to container :
 */


/*setOptions: function() {
    

this.getGrouper = this.options.getGrouper    
    
};


onGroupButton: function(e, args) {
    e.stop();

    this.layer.grouper.toggle(this)
    //TODO: link somehow to editor's group manager?
},

addedToGroup: function() {
    if (Y.Lang.isValue(this.ddHandle))
    this.ddHandle.style.backgroundColor = "green";
},

 removedFromGroup: function() {
if (Y.Lang.isValue(this.ddHandle))
    this.ddHandle.style.backgroundColor = "";
 },*/