unherit

WebJar for unherit

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

unherit
Последняя версия

Последняя версия

1.1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

unherit
WebJar for unherit
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/wooorm/unherit

Скачать unherit

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/unherit/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>unherit</artifactId>
    <version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/unherit/
implementation 'org.webjars.npm:unherit:1.1.3'
// https://jarcasting.com/artifacts/org.webjars.npm/unherit/
implementation ("org.webjars.npm:unherit:1.1.3")
'org.webjars.npm:unherit:jar:1.1.3'
<dependency org="org.webjars.npm" name="unherit" rev="1.1.3">
  <artifact name="unherit" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='unherit', version='1.1.3')
)
libraryDependencies += "org.webjars.npm" % "unherit" % "1.1.3"
[org.webjars.npm/unherit "1.1.3"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : inherits jar [2.0.0,3)
org.webjars.npm : xtend jar [4.0.0,5)

Модули Проекта

Данный проект не имеет модулей.

unherit

Build Coverage Downloads Size

Create a custom constructor which can be modified without affecting the original class.

Install

npm:

npm install unherit

Use

var EventEmitter = require('events').EventEmitter
var unherit = require('unherit')

// Create a private class which acts just like `EventEmitter`.
var Emitter = unherit(EventEmitter)

Emitter.prototype.defaultMaxListeners = 0
// Now, all instances of `Emitter` have no maximum listeners, without affecting
// other `EventEmitter`s.

new Emitter().defaultMaxListeners === 0 // => true
new EventEmitter().defaultMaxListeners === undefined // => true
new Emitter() instanceof EventEmitter // => true

API

unherit(Super)

Create a custom constructor which can be modified without affecting the original class.

Parameters
  • Super (Function) — Super-class
Returns

Function — Constructor acting like Super, which can be modified without affecting the original class.

License

MIT © Titus Wormer

Версии библиотеки

Версия
1.1.3
1.1.2
1.1.1
1.1.0