Changeset 18673

Show
Ignore:
Timestamp:
09/02/08 23:29:03 (4 months ago)
Author:
lyokato
Message:

lang/javascript/ubiquity/mixi-updates.js: bugfix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/ubiquity/mixi-updates.js

    r18595 r18673  
    609609  this.handlers = new Object(); 
    610610}; 
    611 MixiAPI.Handler.protype.getTracksHandler = function() { 
     611MixiAPI.Handler.prototype.getTracksHandler = function() { 
    612612  if (!this.handlers['tracks']) 
    613613    this.handlers['tracks'] = new MixiAPI.TracksHandler(this.client); 
     
    690690    req.setRequestHeader('X-Wsse', this.getToken()); 
    691691  } 
    692   retrn req; 
     692  return req; 
    693693}; 
    694694MixiAPI.Client.prototype.sendGetRequest = function(url, options) { 
     
    711711      req.setRequestHeader('If-None-Match', '"' + this.cache[url]['etag'] + '"'); 
    712712    if (this.cache[url]['last-modified']) 
    713       req.setRequestHeader('If-Modified-Since', this.cache[che[url] = new Object(); 
     713      req.setRequestHeader('If-Modified-Since', this.cache[url]['last-modified']); 
    714714  } 
    715715  req.send(null); 
     
    768768          var author = MixiAPI.TracksHandler._parseAuthor(node); 
    769769          track['name'] = author.name; 
    770           track['image] = author.image; 
     770          track['image'] = author.image; 
    771771          track['relation'] = author.relation; 
    772772          break; 
     
    926926  this.client.getFeed(MixiAPI.PhotoHandler.ENTRY_POINT, options); 
    927927}; 
    928 MixiAPI.PhotoHandler._parseAlbes = collection.childNodes; 
     928MixiAPI.PhotoHandler._parseAlbum = function(collection) { 
     929  var nodes = collection.childNodes; 
    929930  var album = new Object(); 
    930931  album['link'] = collection.getAttribute('href'); 
     
    985986MixiAPI.PhotoHandler.prototype.getAlbums = function(options) { 
    986987  var handler = this;  
    987   (options['onStart] || function(){})(); 
     988  (options['onStart'] || function(){})(); 
    988989  if (this.isLoaded) { 
    989990    (options['onSuccess'] || function(){})(this.albums); 
     
    10781079MixiAPI.UpdatesHandler.ENTRY_POINT = 'http://mixi.jp/atom/updates/r=1/'; 
    10791080MixiAPI.UpdatesHandler.prototype.preload = function(options) { 
    1080   vr handler = this; 
     1081  var handler = this; 
    10811082  var callback = (options['onSuccess'] || function(){}); 
    10821083  options['onSuccess'] = function(res) {