classtrophobic-es5

WebJar for classtrophobic-es5

Лицензия

Лицензия

MIT
Группа

Группа

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

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

classtrophobic-es5
Последняя версия

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

0.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

classtrophobic-es5
WebJar for classtrophobic-es5
Ссылка на сайт

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

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

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

https://github.com/WebReflection/classtrophobic-es5

Скачать classtrophobic-es5

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

Classtrophobic ES5 build status Coverage Status

Project Classtrophobic can work on older browsers too.

No class or Proxy used in here, and the only caveat is that subclasses with a constructor must return the super instance.

var List = Class({
  extends: Array,
  constructor: function () {
    // super might promote current instance
    var self = this.super();
    // be sure you use the right reference
    self.push.apply(self, arguments);
    // and remember to return it
    return self;
  },
  push: function () {
    // constructor a part, everything else is the same
    this.super.push.apply(this, arguments);
    // make push chainable for demo purpose
    return this;
  }
});

Which Version For My Targets?

You can test live both classtrophobic and classtrophobic-es5. If the page turns out green, you're good to go!

The main difference is that ES5 version has a greedy runtime when it comes to super usage, while this original version uses real classes and delegate to Proxy access the super resolution, working only when a method is accessed and per single method, as opposite of runtime setup for all methods in the es5 case.

Luckily overrides are not the most frequent thing ever.

Requirements

At least the annex B __proto__ accessor should be there. This means pretty much every Mobile browser and every Desktop one, starting from IE11.

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

Версия
0.2.1