Htk.Spinner = new Class ({ Extends: Htk.Widget ,Tag: 'htk-spinner' ,initialize: function (props) { var loader = this.createElement ('div'); loader.className = 'htk-spinner'; var spin = document.createElement ('div'); loader.appendChild (spin); this.spin = spin; this.parent (props); } ,start: function () { Vn.Node.addClass (this.spin, 'spinner'); } ,stop: function () { Vn.Node.removeClass (this.spin, 'spinner'); } });