MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / _extends

Function _extends

ServerEditorWeb/ace/worker-xml.js:1849–1868  ·  view source on GitHub ↗
(Class,Super)

Source from the content-addressed store, hash-verified

1847 }
1848}
1849function _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}
1869var htmlns = 'http://www.w3.org/1999/xhtml' ;
1870var NodeType = {}
1871var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;

Callers 1

worker-xml.jsFile · 0.85

Calls 1

copyFunction · 0.85

Tested by

no test coverage detected