diff --git a/scripts/release.js b/scripts/release.js index 153914a..41ad40f 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -24,8 +24,10 @@ logger: console.log.bind(console) }; -ghpages.publish(process.cwd(), options, function(err) { - if (err) { +ghpages.publish(process.cwd(), options, function(err) +{ + if (err) + { console.log(err); process.exit(1); return; diff --git a/scripts/release.js b/scripts/release.js index 153914a..41ad40f 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -24,8 +24,10 @@ logger: console.log.bind(console) }; -ghpages.publish(process.cwd(), options, function(err) { - if (err) { +ghpages.publish(process.cwd(), options, function(err) +{ + if (err) + { console.log(err); process.exit(1); return; diff --git a/src/core/display/Container.js b/src/core/display/Container.js index ce088e5..12420d8 100644 --- a/src/core/display/Container.js +++ b/src/core/display/Container.js @@ -328,7 +328,8 @@ { const child = this.children[i]; - if (!child.visible || !child.renderable) { + if (!child.visible || !child.renderable) + { continue; } @@ -339,10 +340,12 @@ { child._mask.calculateBounds(); this._bounds.addBoundsMask(child._bounds, child._mask._bounds); - } else if (child.filterArea) + } + else if (child.filterArea) { this._bounds.addBoundsArea(child._bounds, child.filterArea); - } else + } + else { this._bounds.addBounds(child._bounds); } diff --git a/scripts/release.js b/scripts/release.js index 153914a..41ad40f 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -24,8 +24,10 @@ logger: console.log.bind(console) }; -ghpages.publish(process.cwd(), options, function(err) { - if (err) { +ghpages.publish(process.cwd(), options, function(err) +{ + if (err) + { console.log(err); process.exit(1); return; diff --git a/src/core/display/Container.js b/src/core/display/Container.js index ce088e5..12420d8 100644 --- a/src/core/display/Container.js +++ b/src/core/display/Container.js @@ -328,7 +328,8 @@ { const child = this.children[i]; - if (!child.visible || !child.renderable) { + if (!child.visible || !child.renderable) + { continue; } @@ -339,10 +340,12 @@ { child._mask.calculateBounds(); this._bounds.addBoundsMask(child._bounds, child._mask._bounds); - } else if (child.filterArea) + } + else if (child.filterArea) { this._bounds.addBoundsArea(child._bounds, child.filterArea); - } else + } + else { this._bounds.addBounds(child._bounds); } diff --git a/test/core/Bounds.js b/test/core/Bounds.js index 6b25132..ba32242 100644 --- a/test/core/Bounds.js +++ b/test/core/Bounds.js @@ -288,7 +288,8 @@ }); - it('should register correct bounds of invisible Container', function() { + it('should register correct bounds of invisible Container', function() + { var parent = new PIXI.Container(); var container = new PIXI.Container();//Graphics().beginFill(0xFF0000).drawCircle(0, 0, 10, 10);//texture); @@ -311,11 +312,10 @@ expect(bounds.y).to.equal(120); expect(bounds.width).to.equal(10); expect(bounds.height).to.equal(10); - }); - it('should register correct width and height with Container masked child', function() { - + it('should register correct width and height with Container masked child', function() + { var parent = new PIXI.Container(); var container = new PIXI.Container();//Graphics().beginFill(0xFF0000).drawCircle(0, 0, 10, 10);//texture);