Comments (3)
Have this same problem. Any solutions?
from klass.
you have to do it like this:
var View = klass({
initialize: function (a, b) {
this.a = a
this.b = b
}
});
var MenuView = View.extend({
initialize: function () {
this.supr('val1', 'val2');
}
});
from klass.
See "Object Literals" https://github.com/ded/klass#object-literals
from klass.
Related Issues (20)
- initialize() being applied to all klass() Objects after an .extend() HOT 2
- Klass.js doesn't work HOT 12
- Semi-colon at the end HOT 5
- Bug: self.supr property can get out of sync HOT 3
- extend doesn't include statics HOT 2
- how to access "statics" ? HOT 1
- Extremly slow compared to .inheritWith, .fastClass, ExtJS, TypeScript or Native solutions HOT 4
- no closing semicolon in the minified version HOT 1
- Please provide release tag for used version in PhotoSwipe HOT 1
- Missing License HOT 1
- How to use klass with event.Emitter HOT 2
- Suggest a .constants() method like .statics() which defines values you cannot change. HOT 1
- Mixin calling its own thing instead of super's thing
- Test case not testing anything (constructor bubbling)
- Add Klass to bower. HOT 2
- Tagged versions. HOT 2
- Klass doesn't work in strict mode. HOT 1
- Leaking global 'supr' symbol when calling supr using methods without proper this context
- Codemod to port to es2015 classes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klass.