/*! Rotella - v0.1.0 - 2013-04-06 * https://github.com/obsidianart/rotella * Copyright (c) 2013 ; Licensed MIT */ !function(t){"use strict";var e=function(t,e){this.init("rotella",t,e)};e.prototype={constructor:e,init:function(e,i,n){this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.timer},getOptions:function(e){return e=t.extend({},t.fn[this.type].defaults,this.$element.data(),e)},goTo:function(){},start:function(){this.start=Date.now(),this._update()},stop:function(){},reset:function(){},_update:function(){console.log("update"),this.timer=setTimeout(t.proxy(this._update,this),100)},destroy:function(){this.timer&&clearTimeout(this.timer)}};var i=t.fn.rotella;t.fn.rotella=function(i){return this.each(function(){var n=t(this),o=n.data("rotella"),r="object"==typeof i&&i;o||n.data("rotella",o=new e(this,r)),"string"==typeof i&&o[i]()})},t.fn.rotella.Constructor=e,t.fn.rotella.defaults={time:5e3,show:"time",starting:0,sprite:"loader.png",width:50,height:50},t.fn.rotella.noConflict=function(){return t.fn.rotella=i,this}}(jQuery);