Remove needless function wrappers.
In a few spots we wrapped code in a function.  This is unneeded and just
indents things without any virtue.
MODIFY
src/camera.js
src/camera.js
-(function () {
- 'use strict';
-
var inherit = require('./inherit');
var object = require('./object');
var util = require('./util');
inherit(camera, object);
module.exports = camera;
-})();

MODIFY
src/canvas/canvasRenderer.js
src/canvas/canvasRenderer.js
@@ -154,8 +154,7 @@ inherit(canvasRenderer, renderer);
registerRenderer('canvas', canvasRenderer);
-(function () {
- 'use strict';
+/* Code for checking if the renderer is supported */
var checkedCanvas;
@@ -188,6 +187,5 @@ registerRenderer('canvas', canvasRenderer);
canvasRenderer.fallback = function () {
return null;
};
-})();
module.exports = canvasRenderer;

MODIFY
src/d3/d3Renderer.js
src/d3/d3Renderer.js
@@ -666,8 +666,7 @@ inherit(d3Renderer, renderer);
registerRenderer('d3', d3Renderer);
-(function () {
- 'use strict';
+/* Code for checking if the renderer is supported */
/**
* Report if the d3 renderer is supported. This is just a check if d3 is
@@ -695,6 +694,5 @@ registerRenderer('d3', d3Renderer);
};
d3Renderer.supported(); // cache reference to d3 if it is available
-})();
module.exports = d3Renderer;

MODIFY
src/gl/vglRenderer.js
src/gl/vglRenderer.js
@@ -317,8 +317,7 @@ inherit(vglRenderer, renderer);
registerRenderer('vgl', vglRenderer);
-(function () {
- 'use strict';
+/* Code for checking if the renderer is supported */
var checkedWebGL;
@@ -359,6 +358,4 @@ registerRenderer('vgl', vglRenderer);
return null;
};
-})();
-
module.exports = vglRenderer;

Remove needless function wrappers.

In a few spots we wrapped code in a function.  This is unneeded and just
indents things without any virtue.