Files
simple-bookreader/client/core/spin/spin.js
Oleg Mokhov f3546ef3a5 Release
2015-06-20 14:48:34 +05:00

39 lines
747 B
JavaScript

modules.define(
'spin',
[
'y-block',
'inherit'
],
function (
provide,
YBlock,
inherit
) {
var Spin = inherit(YBlock, {
__constructor: function () {
this.__base.apply(this, arguments);
},
/**
* Останаваливает анимацию спиннера
*/
stop: function () {
this._removeState('progressed');
},
/**
* Запускает анимацию спиннера
*/
start: function () {
this._setState('progressed');
}
}, {
getBlockName: function () {
return 'spin';
}
});
provide(Spin);
});