[Opengeoscience-developers] OpenGeoscience branch, map_fixes, updated. 7f91ee4b8ddb7d89f2ea7bcc49923ae436e8bc69

Aashish Chaudhary aashish.chaudhary at kitware.com
Wed Mar 6 18:34:50 EST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenGeoscience".

The branch, map_fixes has been updated
       via  7f91ee4b8ddb7d89f2ea7bcc49923ae436e8bc69 (commit)
      from  60083eb99d470a00ebef09b68cf1bf854023b01b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://public.kitware.com/gitweb?p=OpenGeoscience/opengeoscience.git;a=commitdiff;h=7f91ee4b8ddb7d89f2ea7bcc49923ae436e8bc69
commit 7f91ee4b8ddb7d89f2ea7bcc49923ae436e8bc69
Author:     Aashish Chaudhary <aashish.chaudhary at kitware.com>
AuthorDate: Wed Mar 6 18:34:41 2013 -0500
Commit:     Aashish Chaudhary <aashish.chaudhary at kitware.com>
CommitDate: Wed Mar 6 18:34:41 2013 -0500

    Style fix`

diff --git a/web/lib/init.js b/web/lib/init.js
index ee897fe..5d904fb 100644
--- a/web/lib/init.js
+++ b/web/lib/init.js
@@ -1,9 +1,7 @@
 var ogs = ogs || {};
 
-ogs.namespace = function (ns_string) {
-  var parts = ns_string.split('.'),
-       parent = ogs,
-       i;
+ogs.namespace = function(ns_string) {
+  var parts = ns_string.split('.'), parent = ogs, i;
 
   // strip redundant leading global
   if (parts[0] === "ogs") {
@@ -19,7 +17,6 @@ ogs.namespace = function (ns_string) {
   return parent;
 };
 
-
 //////////////////////////////////////////////////////////////////////////////
 ///
 /// Globals
@@ -35,18 +32,18 @@ gl = 0;
 //////////////////////////////////////////////////////////////////////////////
 
 function initWebGL(canvas) {
-// Initialize the global variable gl to null.
-gl = null;
-
-try {
-// Try to grab the standard context. If it fails, fallback to experimental.
-gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
-}
-catch(e){
-}
-
-// If we don't have a GL context, give up now
-if (!gl) {
-alert("Unable to initialize WebGL. Your browser may not support it.");
-}
+  // Initialize the global variable gl to null.
+  gl = null;
+
+  try {
+    // Try to grab the standard context. If it fails, fallback to experimental.
+    gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
+  }
+  catch (e) {
+  }
+
+  // If we don't have a GL context, give up now
+  if (!gl) {
+    alert("Unable to initialize WebGL. Your browser may not support it.");
+  }
 }
\ No newline at end of file

-----------------------------------------------------------------------

Summary of changes:
 web/lib/init.js |   35 ++++++++++++++++-------------------
 1 files changed, 16 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
OpenGeoscience



More information about the Opengeoscience-developers mailing list