Skip to content

Commit

Permalink
Merge pull request #3089 from AnalyticalGraphicsInc/sort-requires
Browse files Browse the repository at this point in the history
Minor cleanup
  • Loading branch information
pjcozzi committed Oct 14, 2015
2 parents 29dfda4 + b285714 commit 48c3fb3
Show file tree
Hide file tree
Showing 17 changed files with 73 additions and 71 deletions.
4 changes: 2 additions & 2 deletions Apps/CesiumViewer/CesiumViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ define([
'Cesium/Core/formatError',
'Cesium/Core/getFilenameFromUri',
'Cesium/Core/Math',
'Cesium/Core/queryToObject',
'Cesium/Core/objectToQuery',
'Cesium/Core/queryToObject',
'Cesium/DataSources/CzmlDataSource',
'Cesium/DataSources/GeoJsonDataSource',
'Cesium/DataSources/KmlDataSource',
Expand All @@ -21,8 +21,8 @@ define([
formatError,
getFilenameFromUri,
CesiumMath,
queryToObject,
objectToQuery,
queryToObject,
CzmlDataSource,
GeoJsonDataSource,
KmlDataSource,
Expand Down
4 changes: 3 additions & 1 deletion Apps/CesiumViewer/CesiumViewerStartup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ require({
domReady : '../../ThirdParty/requirejs-2.1.9/domReady',
Cesium : '../../Source'
}
}, ['CesiumViewer'], function() {
}, [
'CesiumViewer'
], function() {
});
6 changes: 3 additions & 3 deletions Apps/Sandcastle/CesiumSandcastle.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ require({
location : '../ThirdParty/codemirror-4.6'
}]
}, [
'CodeMirror/lib/codemirror',
'dijit/layout/ContentPane',
'dijit/popup',
'dijit/registry',
Expand All @@ -36,7 +37,6 @@ require({
'dojo/query',
'Sandcastle/LinkButton',
'Source/Cesium',
'CodeMirror/lib/codemirror',
'CodeMirror/addon/hint/show-hint',
'CodeMirror/addon/hint/javascript-hint',
'CodeMirror/mode/javascript/javascript',
Expand All @@ -59,6 +59,7 @@ require({
'dijit/ToolbarSeparator',
'dojo/domReady!'
], function(
CodeMirror,
ContentPane,
popup,
registry,
Expand All @@ -74,8 +75,7 @@ require({
parser,
query,
LinkButton,
Cesium,
CodeMirror) {
Cesium) {
"use strict";

//In order for CodeMirror auto-complete to work, Cesium needs to be defined as a global.
Expand Down
12 changes: 6 additions & 6 deletions Source/Core/OrientedBoundingBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ define([
'./EllipsoidTangentPlane',
'./Intersect',
'./Interval',
'./Plane',
'./Rectangle',
'./Math',
'./Matrix3'
'./Matrix3',
'./Plane',
'./Rectangle'
], function(
BoundingSphere,
Cartesian2,
Expand All @@ -27,10 +27,10 @@ define([
EllipsoidTangentPlane,
Intersect,
Interval,
Plane,
Rectangle,
CesiumMath,
Matrix3) {
Matrix3,
Plane,
Rectangle) {
"use strict";

/**
Expand Down
4 changes: 2 additions & 2 deletions Source/DataSources/CzmlDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ define([
'../Scene/VerticalOrigin',
'../ThirdParty/Uri',
'../ThirdParty/when',
'./Rotation',
'./BillboardGraphics',
'./ColorMaterialProperty',
'./CompositeMaterialProperty',
Expand All @@ -61,6 +60,7 @@ define([
'./PositionPropertyArray',
'./RectangleGraphics',
'./ReferenceProperty',
'./Rotation',
'./SampledPositionProperty',
'./SampledProperty',
'./StripeMaterialProperty',
Expand Down Expand Up @@ -104,7 +104,6 @@ define([
VerticalOrigin,
Uri,
when,
Rotation,
BillboardGraphics,
ColorMaterialProperty,
CompositeMaterialProperty,
Expand All @@ -130,6 +129,7 @@ define([
PositionPropertyArray,
RectangleGraphics,
ReferenceProperty,
Rotation,
SampledPositionProperty,
SampledProperty,
StripeMaterialProperty,
Expand Down
4 changes: 2 additions & 2 deletions Source/Scene/ArcGisMapServerImageryProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ define([
'../Core/Cartesian2',
'../Core/Cartesian3',
'../Core/Cartographic',
'../Core/Math',
'../Core/Credit',
'../Core/defaultValue',
'../Core/defined',
Expand All @@ -14,6 +13,7 @@ define([
'../Core/GeographicTilingScheme',
'../Core/jsonp',
'../Core/loadJson',
'../Core/Math',
'../Core/Rectangle',
'../Core/TileProviderError',
'../Core/WebMercatorProjection',
Expand All @@ -26,7 +26,6 @@ define([
Cartesian2,
Cartesian3,
Cartographic,
CesiumMath,
Credit,
defaultValue,
defined,
Expand All @@ -37,6 +36,7 @@ define([
GeographicTilingScheme,
jsonp,
loadJson,
CesiumMath,
Rectangle,
TileProviderError,
WebMercatorProjection,
Expand Down
4 changes: 2 additions & 2 deletions Source/Scene/CullingVolume.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*global define*/
define([
'../Core/Cartesian3',
'../Core/defaultValue',
'../Core/defined',
'../Core/Cartesian3',
'../Core/DeveloperError',
'../Core/Intersect',
'../Core/Plane'
], function(
Cartesian3,
defaultValue,
defined,
Cartesian3,
DeveloperError,
Intersect,
Plane) {
Expand Down
4 changes: 2 additions & 2 deletions Source/Scene/PointPrimitiveCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ define([
'../Renderer/VertexArrayFacade',
'../Shaders/PointPrimitiveCollectionFS',
'../Shaders/PointPrimitiveCollectionVS',
'./PointPrimitive',
'./BlendingState',
'./Pass',
'./PointPrimitive',
'./SceneMode'
], function(
BoundingSphere,
Expand All @@ -51,9 +51,9 @@ define([
VertexArrayFacade,
PointPrimitiveCollectionFS,
PointPrimitiveCollectionVS,
PointPrimitive,
BlendingState,
Pass,
PointPrimitive,
SceneMode) {
"use strict";

Expand Down
4 changes: 2 additions & 2 deletions Source/Scene/UrlTemplateImageryProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ define([
'../Core/Cartesian3',
'../Core/Cartographic',
'../Core/combine',
'../Core/Math',
'../Core/Credit',
'../Core/defaultValue',
'../Core/defined',
Expand All @@ -17,6 +16,7 @@ define([
'../Core/loadText',
'../Core/loadWithXhr',
'../Core/loadXML',
'../Core/Math',
'../Core/Rectangle',
'../Core/TileProviderError',
'../Core/WebMercatorTilingScheme',
Expand All @@ -27,7 +27,6 @@ define([
Cartesian3,
Cartographic,
combine,
CesiumMath,
Credit,
defaultValue,
defined,
Expand All @@ -40,6 +39,7 @@ define([
loadText,
loadWithXhr,
loadXML,
CesiumMath,
Rectangle,
TileProviderError,
WebMercatorTilingScheme,
Expand Down
4 changes: 2 additions & 2 deletions Specs/Core/OrientedBoundingBoxSpec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*global defineSuite*/
defineSuite([
'Core/OrientedBoundingBox',
'Core/BoundingSphere',
'Core/BoundingRectangle',
'Core/BoundingSphere',
'Core/Cartesian3',
'Core/Cartesian4',
'Core/Ellipsoid',
Expand All @@ -16,8 +16,8 @@ defineSuite([
'Core/Rectangle'
], function(
OrientedBoundingBox,
BoundingSphere,
BoundingRectangle,
BoundingSphere,
Cartesian3,
Cartesian4,
Ellipsoid,
Expand Down
2 changes: 1 addition & 1 deletion Specs/Core/getStringFromTypedArraySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
defineSuite([
'Core/getStringFromTypedArray'
], function(
getStringFromTypedArray) {
getStringFromTypedArray) {
"use strict";
/*global jasmine,describe,xdescribe,it,xit,expect,beforeEach,afterEach,beforeAll,afterAll,spyOn,runs,waits,waitsFor*/

Expand Down
4 changes: 2 additions & 2 deletions Specs/DataSources/PathVisualizerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ defineSuite([
'DataSources/PathVisualizer',
'Core/Cartesian3',
'Core/Color',
'Core/Matrix4',
'Core/JulianDate',
'Core/Matrix4',
'Core/ReferenceFrame',
'Core/TimeInterval',
'DataSources/CompositePositionProperty',
Expand All @@ -24,8 +24,8 @@ defineSuite([
PathVisualizer,
Cartesian3,
Color,
Matrix4,
JulianDate,
Matrix4,
ReferenceFrame,
TimeInterval,
CompositePositionProperty,
Expand Down
4 changes: 2 additions & 2 deletions Specs/Scene/SceneSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ defineSuite([
'Scene/FrameState',
'Scene/Globe',
'Scene/Pass',
'Scene/PrimitiveCollection',
'Scene/Primitive',
'Scene/PrimitiveCollection',
'Scene/Scene',
'Scene/ScreenSpaceCameraController',
'Scene/TweenCollection',
Expand Down Expand Up @@ -58,8 +58,8 @@ defineSuite([
FrameState,
Globe,
Pass,
PrimitiveCollection,
Primitive,
PrimitiveCollection,
Scene,
ScreenSpaceCameraController,
TweenCollection,
Expand Down
62 changes: 31 additions & 31 deletions Specs/Scene/UrlTemplateImageryProviderSpec.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
/*global defineSuite*/
defineSuite([
'Scene/UrlTemplateImageryProvider',
'Core/DefaultProxy',
'Core/Ellipsoid',
'Core/GeographicTilingScheme',
'Core/loadImage',
'Core/Math',
'Core/Rectangle',
'Core/WebMercatorProjection',
'Core/WebMercatorTilingScheme',
'Scene/Imagery',
'Scene/ImageryLayer',
'Scene/ImageryProvider',
'Scene/ImageryState',
'Specs/pollToPromise',
'ThirdParty/when'
], function(
UrlTemplateImageryProvider,
DefaultProxy,
Ellipsoid,
GeographicTilingScheme,
loadImage,
CesiumMath,
Rectangle,
WebMercatorProjection,
WebMercatorTilingScheme,
Imagery,
ImageryLayer,
ImageryProvider,
ImageryState,
pollToPromise,
when) {
'Scene/UrlTemplateImageryProvider',
'Core/DefaultProxy',
'Core/Ellipsoid',
'Core/GeographicTilingScheme',
'Core/loadImage',
'Core/Math',
'Core/Rectangle',
'Core/WebMercatorProjection',
'Core/WebMercatorTilingScheme',
'Scene/Imagery',
'Scene/ImageryLayer',
'Scene/ImageryProvider',
'Scene/ImageryState',
'Specs/pollToPromise',
'ThirdParty/when'
], function(
UrlTemplateImageryProvider,
DefaultProxy,
Ellipsoid,
GeographicTilingScheme,
loadImage,
CesiumMath,
Rectangle,
WebMercatorProjection,
WebMercatorTilingScheme,
Imagery,
ImageryLayer,
ImageryProvider,
ImageryState,
pollToPromise,
when) {
"use strict";
/*global jasmine,describe,xdescribe,it,xit,expect,beforeEach,afterEach,beforeAll,afterAll,spyOn*/

Expand Down
4 changes: 2 additions & 2 deletions Specs/Widgets/Viewer/ViewerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ defineSuite([
'Widgets/Animation/Animation',
'Widgets/BaseLayerPicker/BaseLayerPicker',
'Widgets/BaseLayerPicker/ProviderViewModel',
'Widgets/NavigationHelpButton/NavigationHelpButton',
'Widgets/CesiumWidget/CesiumWidget',
'Widgets/FullscreenButton/FullscreenButton',
'Widgets/Geocoder/Geocoder',
'Widgets/HomeButton/HomeButton',
'Widgets/NavigationHelpButton/NavigationHelpButton',
'Widgets/SceneModePicker/SceneModePicker',
'Widgets/SelectionIndicator/SelectionIndicator',
'Widgets/Timeline/Timeline'
Expand Down Expand Up @@ -57,11 +57,11 @@ defineSuite([
Animation,
BaseLayerPicker,
ProviderViewModel,
NavigationHelpButton,
CesiumWidget,
FullscreenButton,
Geocoder,
HomeButton,
NavigationHelpButton,
SceneModePicker,
SelectionIndicator,
Timeline) {
Expand Down
Loading

0 comments on commit 48c3fb3

Please sign in to comment.