JSFiddle - React, Tailwind, and code Playground

by Derek Anderson

JavaScript

enyo.kind({
    name: 'testKind',
    published: {
        foo: 0
    },
    fooChanged: function() {
       console.log('i changed');
    }
});

enyo.kind({
    name: 'testKind2',
    kind: 'testKind',
    foo: 3    
});

var test = new testKind2();
console.log(test.foo);
test.setFoo(1);
console.log(test.foo);