Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created November 1, 2011 17:19
Show Gist options
  • Save Raynos/1331240 to your computer and use it in GitHub Desktop.
Save Raynos/1331240 to your computer and use it in GitHub Desktop.
var Dialog = function () {
...
}
Dialog.prototype.appendChild = function (item) {
item.parentNode = this;
this.childNodes.push(item);
};
var Button = function () {
...
}
var d = new Dialog();
var b = new Button();
d.appendChild(b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment