Skip to content

Commit

Permalink
fixed overwrite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-bravo-yahoo committed Feb 3, 2015
1 parent e043a56 commit 63511b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micropaint.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function generateScreen(parentID, isMainScreen) {
}
});
$('#'+parentID).mouseup(function() {
saveState();
saveState(activeFrame);
});
} else {
$('#'+parentID).click(function(event) {
Expand All @@ -273,7 +273,7 @@ function generateScreen(parentID, isMainScreen) {
$('#frame-'+activeFrame).removeClass('activeFrame');

activeFrame = parseInt(this.id.split('-').pop());

$('#frame-'+activeFrame).addClass('activeFrame');
loadState(activeFrame, true);
}
Expand Down

0 comments on commit 63511b0

Please sign in to comment.