DP.support = (function() {
    var init = function() {
        onlineStatus();
    };
    var onlineStatus = function() {
        addEvent(window, 'online', function() {
            showErr(false);
        });

        addEvent(window, 'offline', function() {
            showErr(true);
        });

        window.ononline = function() {
            showErr(false);
        };

        window.onoffline = function() {
            showErr(true);
        };

        document.body.onOnline = showErr(false);
        document.body.onOffline = showErr(true);

        function showErr(show) {
            if (show) {
                DP.helper.showErr(true, 'The app is offline, please go online.')
            } else {
                DP.helper.showErr(false);
            }
        }
    };
    return {
        init: init
    };
})();

@@ -119,32 +119,39 @@
 ) %7B%0A        
+window.
 addEvent
 (window, 'on
@@ -138,25 +138,25 @@
 addEvent
-(window, 
+Listener(
 'online'
@@ -210,25 +210,24 @@
     %7D);%0A
-%0A
         
 addEvent
@@ -218,24 +218,31 @@
         
+window.
 addEvent
 (window,
@@ -237,17 +237,17 @@
 vent
-(window, 
+Listener(
 'off
@@ -305,17 +305,16 @@
     %7D);%0A
-%0A
         
@@ -375,33 +375,32 @@
 se);%0A        %7D;%0A
-%0A
         window.o
@@ -698,16 +698,17 @@
 nline.')
+;
 %0A       

fix a issue with addEvent