https://github.com/wikimedia/oojs-core
Power for object oriented javascript libraries. Mirror from https://gerrit.wikimedia.org/g/oojs/core. See https://www.mediawiki.org/wiki/Developer_access for contributing.
https://github.com/wikimedia/oojs-core
Last synced: 4 months ago
JSON representation
Power for object oriented javascript libraries. Mirror from https://gerrit.wikimedia.org/g/oojs/core. See https://www.mediawiki.org/wiki/Developer_access for contributing.
- Host: GitHub
- URL: https://github.com/wikimedia/oojs-core
- Owner: wikimedia
- License: mit
- Created: 2013-11-07T18:40:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-12-01T20:06:34.000Z (6 months ago)
- Last Synced: 2025-01-30T13:01:41.800Z (4 months ago)
- Language: JavaScript
- Homepage: https://www.mediawiki.org/wiki/OOjs
- Size: 1.45 MB
- Stars: 17
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-MIT
- Authors: AUTHORS.txt
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/oojs)
# OOjs
OOjs is a JavaScript library for working with objects.
Key features include inheritance, mixins and utilities for working with objects.
/* Example */
function Animal() {}
function Magic() {}
function Unicorn() {
Animal.call( this );
Magic.call( this );
}
OO.inheritClass( Unicorn, Animal );
OO.mixinClass( Unicorn, Magic );## Quick start
This library is available as an [npm](https://npmjs.org/) package! Install it right away:
npm install oojsOr clone the repo, `git clone https://gerrit.wikimedia.org/r/oojs/core`.
## Browser support
We officially support these browsers, aligned with [MediaWiki's compatibility guideline](https://www.mediawiki.org/wiki/Compatibility#Browsers):
* Firefox: last three years (Firefox 78+, 2020)
* Chrome: last three years (Chrome 80+, 2020)
* Edge: last three years (Edge 80+, 2020)
* Opera: last thee years (Opera 67+, 2020)
* iOS: 11.3+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.
## Bug tracker
Found a bug? Please report it in the [issue tracker](https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?projects=OOjs)!