Bug 1122356 - Remove use of expression closures from WindowsPreviewPerTab.jsm. r=dao

This commit is contained in:
Abdelrhman Ahmed 2015-01-18 07:06:00 -08:00
parent b1d86ba0c2
commit ab30fb689f

View File

@ -203,7 +203,9 @@ PreviewController.prototype = {
// Resizes the canvasPreview to 0x0, essentially freeing its memory.
// updateCanvasPreview() will detect the size mismatch as a resize event
// the next time it is called.
resetCanvasPreview: function () this.resizeCanvasPreview(0, 0),
resetCanvasPreview: function () {
this.resizeCanvasPreview(0, 0);
},
resizeCanvasPreview: function (width, height) {
this.canvasPreview.width = width;