JSFiddle - React, Tailwind, and code Playground
by mark69_fnd
JavaScript
YUI().use('node', 'model', 'model-sync-rest', function(Y) {
var MyModel = Y.Base.create('myModel', Y.Model, [Y.ModelSync.REST], {
fire: function(type) {
Y.one('body').append('<p>'+type+'</p>');
// return Y.Model.prototype.fire.apply(this, arguments);
// return this.constructor.superclass.constructor.superclass.constructor.prototype.fire.apply(this, arguments);
return MyModel.superclass.fire.apply(this, arguments);
}
}),
model = new MyModel();
model.set('abc', true);
});