From e56141f4857f32c2ca59f559b60240dbf09e811f Mon Sep 17 00:00:00 2001 From: Rachel Hwang Date: Mon, 30 Jan 2017 15:06:02 -0500 Subject: [PATCH] fix typo --- Source/Core/PolygonGeometry.js | 2 +- Source/Core/PolygonOutlineGeometry.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/PolygonGeometry.js b/Source/Core/PolygonGeometry.js index 4526b34ebbcd..479a6e5ac329 100644 --- a/Source/Core/PolygonGeometry.js +++ b/Source/Core/PolygonGeometry.js @@ -559,7 +559,7 @@ define([ function PolygonGeometry(options) { //>>includeStart('debug', pragmas.debug); Check.typeOf.object('options', options); - Check.typeOf.object('options.polygonHierarchy'); + Check.typeOf.object('options.polygonHierarchy', options.polygonHierarchy); if (defined(options.perPositionHeight) && options.perPositionHeight && defined(options.height)) { throw new DeveloperError('Cannot use both options.perPositionHeight and options.height'); } diff --git a/Source/Core/PolygonOutlineGeometry.js b/Source/Core/PolygonOutlineGeometry.js index 80b85896de1d..f24eee42c43f 100644 --- a/Source/Core/PolygonOutlineGeometry.js +++ b/Source/Core/PolygonOutlineGeometry.js @@ -289,7 +289,7 @@ define([ function PolygonOutlineGeometry(options) { //>>includeStart('debug', pragmas.debug); Check.typeOf.object('options', options); - Check.typeOf.object('options.polygonHierarchy'); + Check.typeOf.object('options.polygonHierarchy', options.polygonHierarchy); if (defined(options.perPositionHeight) && options.perPositionHeight && defined(options.height)) { throw new DeveloperError('Cannot use both options.perPositionHeight and options.height');