(function(window, undefined) {
function XElement(node) {
///
return new XElement.prototype.cnstr(node);
}
XElement.prototype =
{
cnstr: function(node) {
this.node = node;
}
};
XElement.prototype.cnstr.prototype = XElement.prototype;
window.XElement = XElement;
})(window);
Wednesday, June 9, 2010
Construction without new
inspired by jQuery
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment