0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
bonniescraftygifts.com
/
iFzj4
/
configCHM
/
Jump
/
0-aserty
/
natureultra.com
/
wp-content
/
plugins
/
thrive-visual-editor
/
editor
/
js
/
[
Home
]
File: tve_undo_manager.min.js
/*! Thrive Content Builder - 2015-04-15 * http://www.thrivethemes.com/ * Copyright (c) 2015 Thrive Themes */ var UndoManager=function(a){"use strict";function b(a,b){return a?(f=!0,a[b](),f=!1,this):this}var c,d=[],e=-1,f=!1,g="undefined"!=typeof a?parseInt(a):100;return{register:function(a,b,c,d,e,f,g,h){this.add({undo:function(){b.apply(a,c)},redo:function(){f.apply(e,g)}})},add:function(a){return f?this:(d.splice(e+1,d.length-e),d.length>g-1&&d.splice(0,1),d.push(a),e=d.length-1,c&&c(d),this)},setCallback:function(a){c=a},undo:function(){var a=d[e];return a?(b(a,"undo"),e-=1,c&&c(d),this):this},redo:function(){var a=d[e+1];return a?(b(a,"redo"),e+=1,c&&c(d),this):this},clear:function(){var a=d.length;d=[],e=-1,c&&a>0&&c(d)},hasUndo:function(){return-1!==e},hasRedo:function(){return e<d.length-1},getCommands:function(){return d}}};