From f21a167ab234b9960923b1a7ff1c51eef2415b3e Mon Sep 17 00:00:00 2001 From: Cody Date: Sun, 23 Jul 2017 19:34:35 -0400 Subject: [PATCH 1/2] Use Check in InfoBox --- Source/Widgets/InfoBox/InfoBox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Widgets/InfoBox/InfoBox.js b/Source/Widgets/InfoBox/InfoBox.js index da8d533b05c8..6b0349723f2d 100644 --- a/Source/Widgets/InfoBox/InfoBox.js +++ b/Source/Widgets/InfoBox/InfoBox.js @@ -1,5 +1,6 @@ define([ '../../Core/buildModuleUrl', + '../../Core/Check', '../../Core/Color', '../../Core/defined', '../../Core/defineProperties', @@ -11,6 +12,7 @@ define([ './InfoBoxViewModel' ], function( buildModuleUrl, + Check, Color, defined, defineProperties, @@ -34,9 +36,7 @@ define([ */ function InfoBox(container) { //>>includeStart('debug', pragmas.debug); - if (!defined(container)) { - throw new DeveloperError('container is required.'); - } + Check.defined('container', container); //>>includeEnd('debug') container = getElement(container); From a2c2486046fb3a8f914fe93c33a8bc7c6516ab2c Mon Sep 17 00:00:00 2001 From: Cody Guldner Date: Mon, 24 Jul 2017 09:36:05 -0400 Subject: [PATCH 2/2] Remove DeveloperError dependency --- Source/Widgets/InfoBox/InfoBox.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Widgets/InfoBox/InfoBox.js b/Source/Widgets/InfoBox/InfoBox.js index 6b0349723f2d..10eed5e586cb 100644 --- a/Source/Widgets/InfoBox/InfoBox.js +++ b/Source/Widgets/InfoBox/InfoBox.js @@ -5,7 +5,6 @@ define([ '../../Core/defined', '../../Core/defineProperties', '../../Core/destroyObject', - '../../Core/DeveloperError', '../../ThirdParty/knockout', '../getElement', '../subscribeAndEvaluate', @@ -17,7 +16,6 @@ define([ defined, defineProperties, destroyObject, - DeveloperError, knockout, getElement, subscribeAndEvaluate,