Woops again, left a debug alert in by accident

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@274 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-07-06 18:54:38 +00:00
parent 8537e0c35c
commit e4af0eb261
2 changed files with 14 additions and 4 deletions

View File

@ -368,7 +368,6 @@ function svg_edit_setup() {
}
var clickBold = function(){
alert('wah?')
svgCanvas.setBold( !svgCanvas.getBold() );
updateContextPanel();
};

View File

@ -1533,8 +1533,19 @@ function SvgCanvas(c)
undoStackPointer = 0;
};
this.getUndoStackSize = function() { return undoStackPointer; }
this.getRedoStackSize = function() { return undoStack.length - undoStackPointer; }
this.getUndoStackSize = function() { return undoStackPointer; };
this.getRedoStackSize = function() { return undoStack.length - undoStackPointer; };
this.getNextUndoCommandText = function() {
if (undoStackPointer > 0)
return undoStack[undoStackPointer-1].text;
return "";
};
this.getNextRedoCommandText = function() {
if (undoStackPointer < undoStack.length)
return undoStack[undoStackPointer].text;
return "";
};
this.undo = function() {
if (undoStackPointer > 0) {
@ -1543,7 +1554,7 @@ function SvgCanvas(c)
cmd.unapply();
call("changed", cmd.elements());
}
}
};
this.redo = function() {
if (undoStackPointer < undoStack.length && undoStack.length > 0) {
this.clearSelection();