| 1847 | } |
| 1848 | } |
| 1849 | function _extends(Class,Super){ |
| 1850 | var pt = Class.prototype; |
| 1851 | if(Object.create){ |
| 1852 | var ppt = Object.create(Super.prototype) |
| 1853 | pt.__proto__ = ppt; |
| 1854 | } |
| 1855 | if(!(pt instanceof Super)){ |
| 1856 | function t(){}; |
| 1857 | t.prototype = Super.prototype; |
| 1858 | t = new t(); |
| 1859 | copy(pt,t); |
| 1860 | Class.prototype = pt = t; |
| 1861 | } |
| 1862 | if(pt.constructor != Class){ |
| 1863 | if(typeof Class != 'function'){ |
| 1864 | console.error("unknow Class:"+Class) |
| 1865 | } |
| 1866 | pt.constructor = Class |
| 1867 | } |
| 1868 | } |
| 1869 | var htmlns = 'http://www.w3.org/1999/xhtml' ; |
| 1870 | var NodeType = {} |
| 1871 | var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1; |