klass icon indicating copy to clipboard operation
klass copied to clipboard

a utility for creating expressive classes in JavaScript

Results 9 klass issues
Sort by recently updated
recently updated
newest added

Hi, I was wondering if anybody has developed a code mod to port klass classes to es2015 classes. AFAICT, the semantic of klass matches the one of es2015 classes. So...

Hi there, we just noticed that klass will leak a global 'supr' value when you call a supr-using method without a this-context. What happens, is that the wrapper will assign...

The 5th edition of ECMAScript (ES5) forbids use of arguments.callee() in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee

How to use klass with event.Emitter

This test case will show green even when it fails: Commenting out the Baz initialize function shows a test pass. You need to change ok(false,...) in both Foo and Bar's...

I was looking at how the mixin code works. In the test case paraphrased below, If I wanted to implement a mixin where I called the Sub-class's thing before the...

Consider this constructor: 'Thing': klass( function (name, fixed) { Object.defineProperty(this, 'CONST', { value: fixed, writable: false, enumerable: false, configurable: false }); this.gname = name; }).methods({ 'instMethod': function (param) { return...

A nicer package manager: http://spmjs.io Documentation: http://spmjs.io/documentation http://spmjs.io/package/klass --- It is a package manager based on [Sea.js](https://github.com/seajs/seajs) which is a popular module loader in China. spmjs focus in browser side....