Changeset 541

Show
Ignore:
Timestamp:
09/03/08 19:41:08 (4 months ago)
Author:
heyadayo
Message:

changed data in CometSession?.transportOnReadFrame and CometSession?.send to be locally scoped -- this may have been causing errors in IE

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/daemon/orbited/static/Orbited.js

    r521 r541  
    449449            throw new Error("Invalid readyState") 
    450450        } 
    451         data = Orbited.base64.encode(data) 
     451        var data = Orbited.base64.encode(data) 
    452452        sendQueue.push([++packetCount, "data", data]) 
    453453;;;     self.logger.debug('sending==', sending); 
     
    540540            case 'data': 
    541541;;;             self.logger.debug('base64 decoding ' + frame.data.length + ' bytes of data') 
    542                 data = Orbited.base64.decode(frame.data) 
     542                var data = Orbited.base64.decode(frame.data) 
    543543;;;             self.logger.debug('decode complete'); 
    544544                self.onread(data); 
     
    21742174} 
    21752175 
    2176  
    2177 })(); 
    2178  
    2179  
    21802176if (!this.JSON) { 
    21812177 
     
    24962492    }(); 
    24972493} 
     2494Orbited.JSON = JSON; 
     2495})();