[fusion-commits] r2703 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 16 21:23:21 PDT 2013
Author: jng
Date: 2013-05-16 21:23:20 -0700 (Thu, 16 May 2013)
New Revision: 2703
Modified:
trunk/widgets/GoogleStreetViewer.js
Log:
In non-single-file mode, GoogleStreetViewer.js will complain about Proj4js not being defined. Add a guard to only define Proj4js.reportError only if Proj4js exists
Modified: trunk/widgets/GoogleStreetViewer.js
===================================================================
--- trunk/widgets/GoogleStreetViewer.js 2013-05-15 20:18:26 UTC (rev 2702)
+++ trunk/widgets/GoogleStreetViewer.js 2013-05-17 04:23:20 UTC (rev 2703)
@@ -341,8 +341,10 @@
}
});
-Proj4js.reportError = function (msg) {
- if(Fusion.Widget.GoogleStreetViewer.hasGSV) throw msg;
- //console.log(msg);
-};
+if (typeof(Proj4js) != 'undefined') {
+ Proj4js.reportError = function (msg) {
+ if(Fusion.Widget.GoogleStreetViewer.hasGSV) throw msg;
+ //console.log(msg);
+ };
+}
More information about the fusion-commits
mailing list