text: /*!my-history v.1.0.0 2014-04-30 */
  var History=function(){function a(){this.data=[],this.top=0}a.prototype.push=function(a){this.data[this.top++]=a},a.prototype.pop=function(){return this.top>0?this.data[--this.top]:null},a.prototype.isEmpty=function(){return 0===this.top},a.prototype.empty=function(){this.top=0};var b,c=new a,d=new a,e=function(a){null!==b&&c.push(b),b=a,d.empty()},f=function(){var a=c.pop();return a&&(d.push(b),b=a),a},g=function(){var a=d.pop();return a&&(c.push(b),b=a),a},h=function(){return!c.isEmpty()},i=function(){return!d.isEmpty()},j=function(){c.empty(),d.empty(),b=null},k=function(){return b};return{add:e,back:f,fwd:g,hasBack:h,hasFwd:i,clear:j,current:k}}();void 0!==typeof module&&(module.exports=History);