plumes
Version:
Flying-fast Metro future vision components
29 lines (22 loc) • 583 B
JavaScript
(function() {
'use strict';
window.Ractive.controller('pl-button-rounded', function(component, data, el, config, done) {
var ButtonRounded = component({
plName: 'pl-button-rounded',
data: data,
action: function() {
var action = ButtonRounded.get('action');
if (action) {
action(null, ButtonRounded);
}
}
});
if (data.action) {
ButtonRounded.on('action', function(event) {
data.action(event, ButtonRounded);
event.original.stopPropagation();
});
}
done();
});
})();