Skip to content

Commit

Permalink
resolved #12. thanks aman
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcher committed Jan 15, 2009
1 parent e0ee618 commit cf2a555
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 30 deletions.
21 changes: 11 additions & 10 deletions dist/env.js
Expand Up @@ -1787,10 +1787,10 @@ var DOMElement = function(ownerDocument) {
//$log("\nfinished creating dom element " + this);
};
DOMElement.prototype = new DOMNode;
__extend__(DOMElement.prototype, {
addEventListener: window.addEventListener,
removeEventListener: window.removeEventListener,
dispatchEvent: window.dispatchEvent,
__extend__(DOMElement.prototype, {
addEventListener : function(){ window.addEventListener.apply(this, arguments) },
removeEventListener : function(){ window.removeEventListener.apply(this, arguments) },
dispatchEvent : function(){ window.dispatchEvent.apply(this, arguments) },
getAttribute: function(name) {
var ret = null;
// if attribute exists, use it
Expand Down Expand Up @@ -3850,12 +3850,13 @@ var DOMDocument = function(implementation) {
//$log("\tfinished creating dom document " + this);
};
DOMDocument.prototype = new DOMNode;
__extend__(DOMDocument.prototype, {
addEventListener : window.addEventListener,
removeEventListener : window.removeEventListener,
attachEvent : window.addEventListener,/*IE only subject to deprecation*/
detachEvent : window.detachEvent,/*IE only subject to deprecation*/
dispatchEvent : window.dispatchEvent,
__extend__(DOMDocument.prototype, {
addEventListener : function(){ window.addEventListener.apply(this, arguments) },
removeEventListener : function(){ window.removeEventListener.apply(this, arguments) },
attachEvent : function(){ window.addEventListener.apply(this, arguments) },
detachEvent : function(){ window.removeEventListener.apply(this, arguments) },
dispatchEvent : function(){ window.dispatchEvent.apply(this, arguments) },

get styleSheets(){
return [];/*TODO*/
},
Expand Down
21 changes: 11 additions & 10 deletions dist/env.rhino.js
Expand Up @@ -1982,10 +1982,10 @@ var DOMElement = function(ownerDocument) {
//$log("\nfinished creating dom element " + this);
};
DOMElement.prototype = new DOMNode;
__extend__(DOMElement.prototype, {
addEventListener: window.addEventListener,
removeEventListener: window.removeEventListener,
dispatchEvent: window.dispatchEvent,
__extend__(DOMElement.prototype, {
addEventListener : function(){ window.addEventListener.apply(this, arguments) },
removeEventListener : function(){ window.removeEventListener.apply(this, arguments) },
dispatchEvent : function(){ window.dispatchEvent.apply(this, arguments) },
getAttribute: function(name) {
var ret = null;
// if attribute exists, use it
Expand Down Expand Up @@ -4045,12 +4045,13 @@ var DOMDocument = function(implementation) {
//$log("\tfinished creating dom document " + this);
};
DOMDocument.prototype = new DOMNode;
__extend__(DOMDocument.prototype, {
addEventListener : window.addEventListener,
removeEventListener : window.removeEventListener,
attachEvent : window.addEventListener,/*IE only subject to deprecation*/
detachEvent : window.detachEvent,/*IE only subject to deprecation*/
dispatchEvent : window.dispatchEvent,
__extend__(DOMDocument.prototype, {
addEventListener : function(){ window.addEventListener.apply(this, arguments) },
removeEventListener : function(){ window.removeEventListener.apply(this, arguments) },
attachEvent : function(){ window.addEventListener.apply(this, arguments) },
detachEvent : function(){ window.removeEventListener.apply(this, arguments) },
dispatchEvent : function(){ window.dispatchEvent.apply(this, arguments) },

get styleSheets(){
return [];/*TODO*/
},
Expand Down
13 changes: 7 additions & 6 deletions src/dom/document.js
Expand Up @@ -41,12 +41,13 @@ var DOMDocument = function(implementation) {
//$log("\tfinished creating dom document " + this);
};
DOMDocument.prototype = new DOMNode;
__extend__(DOMDocument.prototype, {
addEventListener : window.addEventListener,
removeEventListener : window.removeEventListener,
attachEvent : window.addEventListener,/*IE only subject to deprecation*/
detachEvent : window.detachEvent,/*IE only subject to deprecation*/
dispatchEvent : window.dispatchEvent,
__extend__(DOMDocument.prototype, {
addEventListener : function(){ window.addEventListener.apply(this, arguments) },
removeEventListener : function(){ window.removeEventListener.apply(this, arguments) },
attachEvent : function(){ window.addEventListener.apply(this, arguments) },
detachEvent : function(){ window.removeEventListener.apply(this, arguments) },
dispatchEvent : function(){ window.dispatchEvent.apply(this, arguments) },

get styleSheets(){
return [];/*TODO*/
},
Expand Down
8 changes: 4 additions & 4 deletions src/dom/element.js
Expand Up @@ -26,10 +26,10 @@ var DOMElement = function(ownerDocument) {
//$log("\nfinished creating dom element " + this);
};
DOMElement.prototype = new DOMNode;
__extend__(DOMElement.prototype, {
addEventListener: window.addEventListener,
removeEventListener: window.removeEventListener,
dispatchEvent: window.dispatchEvent,
__extend__(DOMElement.prototype, {
addEventListener : function(){ window.addEventListener.apply(this, arguments) },
removeEventListener : function(){ window.removeEventListener.apply(this, arguments) },
dispatchEvent : function(){ window.dispatchEvent.apply(this, arguments) },
getAttribute: function(name) {
var ret = null;
// if attribute exists, use it
Expand Down

0 comments on commit cf2a555

Please sign in to comment.