Changeset 7385

Show
Ignore:
Timestamp:
02/20/07 16:31:55 (23 months ago)
Author:
BradNeuberg
Message:

Cleaning up debug output of Moxie

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/demos/storage/editor.html

    r7323 r7385  
    1010                var djConfig =  
    1111                                                {  
    12                                                         isDebug: true,  
     12                                                        isDebug: false,  
    1313                                                        parseWidgets: false,  
    1414                                                        searchIds: ["storageValue"]  
     
    4141                #storageKey, #directory { margin-top: 0.3em; } 
    4242                #saveButton { margin-left: 0.2em; } 
    43                 /*#dot-widget-container { height: auto; }*/ 
     43                #dot-widget-container { height: auto; } 
    4444                 
    4545                .widget { border: 2px solid #CDDDE9; } 
     
    9090                                filled into any element with ID "dot-widget". 
    9191                         --> 
    92                          
     92                        <!-- 
    9393                        <div id="dot-widget"></div> 
    94                          
     94                        --> 
    9595                         
    9696                        <!-- Customize what parts of the Offline Widget we see --> 
    97                         <!-- 
    9897                        <div id="dot-widget-container" style="visibility: hidden;"> 
    9998                                <div id="dot-widget-title-bar"> 
     
    121120                                </div> 
    122121                        </div> 
    123                         --> 
    124122                </div> 
    125123                 
  • trunk/demos/storage/editor.js

    r7328 r7385  
    391391         
    392392        _downloadData: function(){ 
    393                 dojo.debug("Moxie._downloadData"); 
    394393                var self = this; 
    395394                // FIXME: Use Dojo's internal cache busting mechanisms 
     
    400399                        headers:        { "Accept" : "text/javascript" }, 
    401400                        error:          function(type, errObj){ 
    402                                 dojo.debug("Moxie._downloadData.error, type="+type+", errObj="+errObj.message); 
     401                                //dojo.debug("Moxie._downloadData.error, type="+type+", errObj="+errObj.message); 
    403402                                var message = "Unable to download our documents from server: " 
    404403                                                                + errObj.message; 
     
    406405                        }, 
    407406                        load:           function(type, data, evt){ 
    408                                 dojo.debug("Moxie._downloadData.load, type="+type+", evt="+evt);         
     407                                //dojo.debug("Moxie._downloadData.load, type="+type+", evt="+evt);       
    409408                                self._saveDownloadedData(data); 
    410409                        } 
     
    416415         
    417416        _saveDownloadedData: function(data){ 
    418                 dojo.debug("Moxie.saveDownloadedData"); 
    419417                // persist the data into Dojo Storage, with the key 
    420418                // "documents". 'data' 
     
    425423                try{ 
    426424                        dojo.storage.put("documents", data, function(status, key, message){ 
    427                                 dojo.debug("_saveDownloadedData.resultHandler, status="+status+", key="+key+", message="+message); 
     425                                //dojo.debug("_saveDownloadedData.resultHandler, status="+status+", key="+key+", message="+message); 
    428426                                if(status == dojo.storage.SUCCESS){ 
    429427                                        // update our list of available keys 
  • trunk/src/off.js

    r7323 r7385  
    239239         
    240240        _onLoad: function(){ 
    241                 dojo.debug("dojo.off._onLoad"); 
     241                //dojo.debug("dojo.off._onLoad"); 
    242242                // both local storage and the page are finished loading 
    243243                 
     
    251251                var self = this; 
    252252                this.load(function(){ 
    253                         dojo.debug("Load finished callback inside of dojo.off._onLoad"); 
    254253                        // kick off a thread to check network status on 
    255254                        // a regular basis 
  • trunk/src/sync.js

    r7327 r7385  
    6363         
    6464        replay: function(){ /* void */ 
    65                 dojo.debug("replay"); 
    6665                // summary: 
    6766                //      Replays all of the commands that have been 
    6867                //      cached in this command log when we go back online; 
    6968                //      onCommand will be called for each command we have 
    70                 dojo.debug("isReplaying="+this.isReplaying); 
    7169                 
    7270                if(this.isReplaying == true){ 
     
    7775                 
    7876                if(this.commands.length == 0){ 
    79                         dojo.debug("no commands to run"); 
    8077                        this.onReplayFinished(); 
    8178                        return; 
     
    8582                 
    8683                var nextCommand = this.commands[0]; 
    87                 dojo.debug("nextCommand="+nextCommand); 
    8884                this.onCommand(nextCommand); 
    8985        }, 
     
    115111                //      the network, and you should call one of these two methods based on  
    116112                //      the result of your network call. 
    117                 dojo.debug("default onCommand"); 
    118113        }, 
    119114         
    120115        add: function(command /* Object */){ /* void */ 
    121                 dojo.debug("CommandLog.add"); 
    122116                // summary: 
    123117                //      Adds an action to our command log 
     
    146140                                                                + "we are replaying a command log"); 
    147141                } 
    148                 dojo.debug("this.commands="+this.commands); 
    149                 dojo.debug("this.commands.push="+this.commands.push); 
    150                 for(var i in this.commands){ 
    151                         dojo.debug(i + "=" + this.commands[i]); 
    152                 } 
     142                 
    153143                this.commands.push(command); 
    154144                 
     
    182172                //      are not rolled back), while the command entry that was halted 
    183173                //      stays in our list of commands to later be replayed.      
    184                 dojo.debug("commandlog.haltReplay"); 
    185174                if(this.isReplaying == false){ 
    186175                        return; 
     
    207196         
    208197        continueReplay: function(){ /* void */ 
    209                 dojo.debug("commandlog.continueReplay"); 
    210198                // summary: 
    211199                //      Indicates that we should continue processing out list 
     
    224212                this.commands.shift(); 
    225213                 
    226                 dojo.debug("this.commands.length after shifting="+this.commands.length); 
    227                  
    228214                // are we done? 
    229215                if(this.commands.length == 0){ 
    230                         dojo.debug("no more length"); 
    231216                        // save the state of our command log, then 
    232217                        // tell anyone who is interested that we are 
     
    235220                                var self = this; 
    236221                                this.save(function(){ 
    237                                         dojo.debug("finished saving command log"); 
    238222                                        self.isReplaying = false; 
    239223                                        self.onReplayFinished(); 
     
    249233                // get the next command 
    250234                var nextCommand = this.commands[0]; 
    251                 dojo.debug("nextCommand="+nextCommand); 
    252235                this.onCommand(nextCommand); 
    253236        }, 
     
    271254         
    272255        save: function(finishedCallback){ /* void */ 
    273                 dojo.debug("commandlog.save"); 
    274256                // summary: 
    275257                //      Saves this command log to persistent, client-side storage 
     
    306288         
    307289        load: function(finishedCallback){ /* void */ 
    308                 dojo.debug("CommandLog load!"); 
    309290                // summary: 
    310291                //      Loads our command log from reliable, persistent local storage; 
     
    443424         
    444425        synchronize: function(){ /* void */ 
    445                 dojo.debug("dojo.sync.synchronize"); 
    446426                // summary: 
    447427                //      Begin a synchronization session. 
     
    476456         
    477457        start: function(){ /* void */ 
    478                 dojo.debug("dojo.sync.start"); 
    479458                if(this.cancelled == true){ 
    480459                        this.finished(); 
     
    490469         
    491470        refreshUI: function(){ /* void */ 
    492                 dojo.debug("dojo.sync.refreshUI"); 
    493471                if(this.cancelled == true){ 
    494472                        this.finished(); 
     
    515493         
    516494        upload: function(){ /* void */ 
    517                 dojo.debug("dojo.sync.upload"); 
    518495                if(this.cancelled == true){ 
    519496                        this.finished(); 
     
    531508                if(this.log.onReplayFinished == null){ 
    532509                        this.log.onReplayFinished = function(){ 
    533                                 dojo.debug("onReplayFinished"); 
    534510                                self.download(); 
    535511                        } 
     
    541517         
    542518        download: function(){ /* void */ 
    543                 dojo.debug("dojo.sync.download"); 
    544519                if(this.cancelled == true){ 
    545520                        this.finished(); 
     
    558533         
    559534        doDownload: function(){ /* void */ 
    560                 dojo.debug("dojo.sync.doDownload"); 
    561535                // summary: 
    562536                //      Actually downloads the data we need to 
     
    571545        finishedDownloading: function(successful /* boolean */,  
    572546                                                                        errorMessage /* String */){ 
    573                 dojo.debug("dojo.sync.finishedDownloading, successful="+successful+", errorMessage="+errorMessage); 
    574547                // summary: 
    575548                //      Applications call this method from their 
     
    591564         
    592565        finished: function(){ /* void */ 
    593                 dojo.debug("dojo.sync.finished"); 
    594566                this.isSyncing = false; 
    595567                 
     
    650622                //      as it is handle automatically by the Dojo Offline 
    651623                //      framework. 
    652                 dojo.debug("dojo.sync.load, log="+this.log); 
    653624                this.log.load(function(){ 
    654                         dojo.debug("!!!Loaded log, log="+dojo.sync.log); 
    655625                        finishedCallback(); 
    656626                });