I think it will be easier with an example, I have this for example:

file A.js

  var A = prime({
    opt: {
      tag: 'span'
      class: 'red'
    },
    constructor: function(options) {
      this.setOptions(options);
    },
    insert: function() {
      var element = document.createElement(this.options.tag);
      element.className = this.options.class;
      //some code
    }
  });
  mixin(A, options)


file B.js

  var B = prime({
    inherits: A,
    something: function() {
      //some code
    }
  });
  mixin(B, options)


file C.js 

  var C = prime({
    inherits: B,
    insert: function() {
      this.parent('insert');
      
      //some code
    }
  });
  mixin(C, options)


file index.html

  var c = new C({
    class: 'blue'
  }).insert();

I want to create an element with the class blue.

And could you tell me if I'm doing something wrong?

Thanks

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to