We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4710a0 commit e6f6d44Copy full SHA for e6f6d44
platform/pure.femto/backend.js
@@ -47,14 +47,18 @@ exports.initSystem = function(system) {
47
}
48
49
exports.createElement = function(ctx, tag, cls) {
50
+ var el
51
switch(tag) {
52
case 'input':
- return new fd.Input()
53
+ el = new fd.Input()
54
case 'spinner':
- return new fd.Spinner()
55
+ el = new fd.Spinner()
56
default:
- return new fd.Element()
57
+ el = new fd.Element()
58
59
+ if (cls)
60
+ el.addClass(cls)
61
+ return el
62
63
64
exports.initRectangle = function(rect) {
0 commit comments