another fix in the code

This commit is contained in:
jdescottes 2014-07-14 00:38:39 +02:00
parent 1692822914
commit a0485331ae
5 changed files with 8 additions and 8 deletions

View File

@ -16301,6 +16301,10 @@ zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
ns.SelectionManager.prototype.pastePixels = function(pixels) {
var currentFrame = this.piskelController.getCurrentFrame();
pixels.forEach(function (pixel) {
currentFrame.setPixel(pixel.col,pixel.row,pixel.color);
});
$.publish(Events.PISKEL_SAVE_STATE, {
type : pskl.service.HistoryService.REPLAY,
scope : this,
@ -16309,10 +16313,6 @@ zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
pixels : JSON.parse(JSON.stringify(pixels.slice(0)))
}
});
pixels.forEach(function (pixel) {
currentFrame.setPixel(pixel.col,pixel.row,pixel.color);
});
};
ns.SelectionManager.prototype.replay = function (frame, replayData) {

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
(function () {
/**
* See @Gruntfile.js => after build, -2014-07-13-09-02 is replaced by the build version
* See @Gruntfile.js => after build, -2014-07-14-12-37 is replaced by the build version
*/
var version = '-2014-07-13-09-02';
var version = '-2014-07-14-12-37';
var versionHasNotBeenReplaced = version.indexOf('@@') === 0;
if (versionHasNotBeenReplaced) {
version = '';