Moved event listener models from prototype into function.

This commit is contained in:
Michael Herzberg 2015-06-21 14:26:21 +02:00
parent 2cec69074c
commit dbe76a5145
1 changed files with 4 additions and 4 deletions

View File

@ -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
};