Remove trailing white spaces and ensure newlines at the end.

This commit is contained in:
Jürg Lehni 2014-04-06 13:48:03 +02:00
parent 91d0fc1534
commit f002c633a7
52 changed files with 241 additions and 240 deletions

View file

@ -111,7 +111,7 @@ var BlendMode = new function() {
},
// if (Cs <= 0.5) B(Cb, Cs) = Multiply(Cb, 2 x Cs)
// else B(Cb, Cs) = Screen(Cb, 2 x Cs -1)
// else B(Cb, Cs) = Screen(Cb, 2 x Cs -1)
'hard-light': function() {
dr = sr < 128 ? 2 * sr * br / 255 : 255 - 2 * (255 - sr) * (255 - br) / 255;
dg = sg < 128 ? 2 * sg * bg / 255 : 255 - 2 * (255 - sg) * (255 - bg) / 255;
@ -249,7 +249,7 @@ var BlendMode = new function() {
}
} catch (e) {}
ctx.restore();
nativeModes[mode] = ok;
nativeModes[mode] = ok;
});
CanvasProvider.release(ctx);
@ -266,7 +266,7 @@ var BlendMode = new function() {
if (!normal)
dstContext.globalCompositeOperation = mode;
dstContext.drawImage(srcCanvas, offset.x, offset.y);
dstContext.restore();
dstContext.restore();
} else {
var process = modes[mode];
if (!process)

View file

@ -13,9 +13,9 @@
/**
* @name ProxyContext
*
* @class The ProxyContext is a helper class that helps Canvas debugging
* @class The ProxyContext is a helper class that helps Canvas debugging
* by logging all interactions with a 2D Canvas context.
*
*
* @private
*
* @classexample
@ -68,7 +68,7 @@ var ProxyContext = new function() {
this._indents--;
console.log(this.getIndentation() + 'ctx.' + name + '('
+ Array.prototype.slice.call(arguments, 0)
.map(JSON.stringify).join(', ')
.map(JSON.stringify).join(', ')
+ ');');
if (name === 'save')
this._indents++;