Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created December 6, 2010 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommedema/730332 to your computer and use it in GitHub Desktop.
Save tommedema/730332 to your computer and use it in GitHub Desktop.
//TreeNode data structure
Class("DOM.Tree.Node", {
has : {
attributes : {is : "rw", required: true}, //array with DOM.Attributes, excludes stype attribute
styleArr : {is : "rw", required: true}, //style array of the node (attributes with name and value)
name : {is : "rw", required: true}, //name of the node
type : {is : "rw", required: true} //type of the node
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment