Changed from brackets to parens so as to prevent !this._options.hasOwnProperty["roomHeight"] from always returning true (!undefined). No other changes made.
Before:
if (!this._options.hasOwnProperty["roomHeight"]) {
this._options["roomHeight"] = this._calculateRoomSize(this._height, this._options["cellHeight"]);
}
After:
if (!this._options.hasOwnProperty("roomHeight")) {
this._options["roomHeight"] = this._calculateRoomSize(this._height, this._options["cellHeight"]);
}
Changed from brackets to parens so as to prevent !this._options.hasOwnProperty["roomHeight"] from always returning true (!undefined). No other changes made.
Before:
if (!this._options.hasOwnProperty["roomHeight"]) { this._options["roomHeight"] = this._calculateRoomSize(this._height, this._options["cellHeight"]); }
After:
if (!this._options.hasOwnProperty("roomHeight")) { this._options["roomHeight"] = this._calculateRoomSize(this._height, this._options["cellHeight"]); }