This commit is contained in:
Oleg Mokhov
2015-06-20 12:26:08 +03:00
committed by mokhov
parent a716969f4e
commit f3546ef3a5
85 changed files with 16682 additions and 1 deletions

38
client/core/spin/spin.js Normal file
View File

@@ -0,0 +1,38 @@
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);
});