resources/lib/oojs/README.md
OOjs is a JavaScript library for working with objects.
Key features include inheritance, mixins and utilities for working with objects.
<pre lang="javascript"> /* Example */ function Animal() {} function Magic() {} function Unicorn() { Animal.call( this ); Magic.call( this ); } OO.inheritClass( Unicorn, Animal ); OO.mixinClass( Unicorn, Magic ); </pre>This library is available as an npm package! Install it right away:
<pre lang="bash"> npm install oojs </pre>Or clone the repo, git clone https://gerrit.wikimedia.org/r/oojs/core.
We officially support these browsers, aligned with MediaWiki's compatibility guideline:
OOjs requires a modern ES2015 (ECMAScript 6) environment. To support older browsers with ECMAScript 5 engines (such as IE 11), use the last OOjs 6.x release.
Found a bug? Please report it in the issue tracker!