Permalink
Browse files

merging Aria's DOMException changes

  • Loading branch information...
2 parents 1ddb8a5 + 6cebfa6 commit c25acca84204a568f1a44d90c413d94847940af1 @tmpvar committed Sep 8, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/jsdom/level1/core.js
@@ -48,16 +48,15 @@ var core = {
};
var sys = require("sys");
-core.DOMException = function(code, msg) {
+core.DOMException = function(code) {
this._code = code;
Error.call(this, messages[code]);
this.message = messages[code];
if(Error.captureStackTrace) Error.captureStackTrace(this, core.DOMException);
};
core.DOMException.prototype = {
- get code() { return this._code;},
- get msg() { return this._msg; }
+ get code() { return this._code;}
};
core.DOMException.prototype.__proto__ = Error.prototype;

0 comments on commit c25acca

Please sign in to comment.