[fusion-commits] r2824 - in sandbox/robust_error_handling: . lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Nov 28 04:51:40 PST 2013
Author: jng
Date: 2013-11-28 04:51:39 -0800 (Thu, 28 Nov 2013)
New Revision: 2824
Modified:
sandbox/robust_error_handling/build.xml
sandbox/robust_error_handling/lib/fusion.js
Log:
#576:
- Integrate TraceKit to single-file build
- Disable TraceKit remote fetching for single-file build
- Point Fusion.ajaxRequest() failures to Fusion.ajaxException() if error handler is not set
Modified: sandbox/robust_error_handling/build.xml
===================================================================
--- sandbox/robust_error_handling/build.xml 2013-11-28 12:00:01 UTC (rev 2823)
+++ sandbox/robust_error_handling/build.xml 2013-11-28 12:51:39 UTC (rev 2824)
@@ -214,6 +214,7 @@
<filelist dir="${build.home}/lib"
files=" SingleFile.js
fusion.js
+ TraceKit/TraceKit.js
jxLib/jxlib.uncompressed.js
OpenLayers/OpenLayers.js
Proj4js/proj4js-compressed.js
Modified: sandbox/robust_error_handling/lib/fusion.js
===================================================================
--- sandbox/robust_error_handling/lib/fusion.js 2013-11-28 12:00:01 UTC (rev 2823)
+++ sandbox/robust_error_handling/lib/fusion.js 2013-11-28 12:51:39 UTC (rev 2824)
@@ -336,6 +336,7 @@
*
*/
initialize: function(options) {
+ TraceKit.remoteFetching = !singleFile;
TraceKit.report.subscribe(OpenLayers.Function.bind(this.onTraceKitError, this));
options = options || {};
@@ -722,6 +723,9 @@
if (!options.onException) {
options.onException = OpenLayers.Function.bind(this.ajaxException, this);
}
+ if (!options.onFailure) {
+ options.onFailure = OpenLayers.Function.bind(this.ajaxException, this);
+ }
if (!options.contentType) {
options.contentType = 'application/x-www-form-urlencoded';
}
More information about the fusion-commits
mailing list