Moved event listener models from prototype into function.
This commit is contained in:
parent
2cec69074c
commit
dbe76a5145
|
@ -133,12 +133,12 @@ DOMNode = function DOMNode() { // An impostor for the Node class
|
|||
|
||||
this.selectNodes = function(a) {
|
||||
}
|
||||
|
||||
this.addEventListener = function Node_prototype_addEventListener(name, fn) { fn(); };
|
||||
|
||||
this.removeEventListener = function Node_prototype_removeEventListener(name) {};
|
||||
};
|
||||
|
||||
DOMNode.prototype.addEventListener = function Node_prototype_addEventListener(name, fn) { fn(); };
|
||||
|
||||
DOMNode.prototype.removeEventListener = function Node_prototype_removeEventListener(name) {};
|
||||
|
||||
DOMNode.prototype.cloneNode = function Node_prototype_cloneNode() {
|
||||
// TODO: model me
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue