[Code Style] Run gulp fixstyle

...to apply code style settings from #142.
This commit is contained in:
Victor Woeltjen
2016-05-19 11:29:13 -07:00
parent f12b9704d9
commit fa77139077
440 changed files with 1885 additions and 1662 deletions

View File

@ -67,7 +67,7 @@ define(
* @param {number} [index] the position to insert the region. By default
* will add to the end
*/
Region.prototype.addRegion = function (region, index){
Region.prototype.addRegion = function (region, index) {
if (index) {
this.regions.splice(index, 0, region);
} else {
@ -82,11 +82,11 @@ define(
* string, will remove the region with the matching name. If an
* object, will attempt to remove that object from the Region
*/
Region.prototype.removeRegion = function (region){
Region.prototype.removeRegion = function (region) {
if (typeof region === 'number') {
this.regions.splice(region, 1);
} else if (typeof region === 'string'){
this.regions = this.regions.filter(function(thisRegion) {
} else if (typeof region === 'string') {
this.regions = this.regions.filter(function (thisRegion) {
return thisRegion.name !== region;
});
} else {