From 0be2ae910a8a22c9ec2cac042e04de4c04317d2a Mon Sep 17 00:00:00 2001 From: jinjinyun Date: Tue, 9 May 2017 13:05:33 +0800 Subject: [PATCH] remove __proto__ accessor --- dom.js | 4 ---- package.json | 44 ++++++++++++++++++++++---------------------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/dom.js b/dom.js index 6299445..b13b371 100644 --- a/dom.js +++ b/dom.js @@ -16,10 +16,6 @@ function copy(src,dest){ */ function _extends(Class,Super){ var pt = Class.prototype; - if(Object.create){ - var ppt = Object.create(Super.prototype) - pt.__proto__ = ppt; - } if(!(pt instanceof Super)){ function t(){}; t.prototype = Super.prototype; diff --git a/package.json b/package.json index 610c157..a656192 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,22 @@ -{ - "name": "xmldom", - "version": "0.1.27", - "description": "A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).", - "keywords": ["w3c","dom","xml","parser","javascript","DOMParser","XMLSerializer"], - "author": "jindw (http://www.xidea.org)", - "homepage": "https://github.com/jindw/xmldom", - "repository": {"type": "git","url": "git://github.com/jindw/xmldom.git"}, - "main": "./dom-parser.js", - "scripts" : { "test": "proof platform win32 && proof test */*/*.t.js || t/test" }, - "engines": {"node": ">=0.1"}, - "dependencies": {}, - "devDependencies": { "proof": "0.0.28" }, - "maintainers": [{"name": "jindw","email": "jindw@xidea.org","url": "http://www.xidea.org"}], - "contributors": [ - {"name" : "Yaron Naveh","email" : "yaronn01@gmail.com","web" : "http://webservices20.blogspot.com/"}, - {"name" : "Harutyun Amirjanyan","email" : "amirjanyan@gmail.com","web" : "https://github.com/nightwing"}, - {"name" : "Alan Gutierrez","email" : "alan@prettyrobots.com","web" : "http://www.prettyrobots.com/"} - ], - "bugs": {"email": "jindw@xidea.org","url": "http://github.com/jindw/xmldom/issues"}, - "license": "(LGPL-2.0 or MIT)" -} +{ + "name": "xmldom-alpha", + "version": "0.1.28", + "description": "A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).", + "keywords": ["w3c","dom","xml","parser","javascript","DOMParser","XMLSerializer"], + "author": "jindw (http://www.xidea.org)", + "homepage": "https://github.com/jindw/xmldom", + "repository": {"type": "git","url": "git://github.com/jindw/xmldom.git"}, + "main": "./dom-parser.js", + "scripts" : { "test": "proof platform win32 && proof test */*/*.t.js || t/test" }, + "engines": {"node": ">=0.1"}, + "dependencies": {}, + "devDependencies": { "proof": "0.0.28" }, + "maintainers": [{"name": "jindw","email": "jindw@xidea.org","url": "http://www.xidea.org"}], + "contributors": [ + {"name" : "Yaron Naveh","email" : "yaronn01@gmail.com","web" : "http://webservices20.blogspot.com/"}, + {"name" : "Harutyun Amirjanyan","email" : "amirjanyan@gmail.com","web" : "https://github.com/nightwing"}, + {"name" : "Alan Gutierrez","email" : "alan@prettyrobots.com","web" : "http://www.prettyrobots.com/"} + ], + "bugs": {"email": "jindw@xidea.org","url": "http://github.com/jindw/xmldom/issues"}, + "license": "(LGPL-2.0 or MIT)" +}