uupaa.classextend.js

0.8.28 • Public • Published

ClassExtend.js Build Status

npm

Class extends mechanism.

Document

How to use

Browser

<script src="lib/ClassExtend.js">
<script>
function ClassFoo() {}
function ClassBar(arg) { ClassFoo.call(this, arg); }

ClassBar.extend(ClassFoo);
</script>

WebWorkers

importScripts("lib/ClassExtend.js");

function ClassFoo() {}
function ClassBar(arg) { ClassFoo.call(this, arg); }

ClassBar.extend(ClassFoo);

Node.js

var ClassExtend = require("lib/ClassExtend.js");

function ClassFoo() {}
function ClassBar(arg) { ClassFoo.call(this, arg); }

ClassBar.extend(ClassFoo);

Package Sidebar

Install

npm i uupaa.classextend.js

Weekly Downloads

5

Version

0.8.28

License

MIT

Last publish

Collaborators

  • uupaa