Changeset 13921

Show
Ignore:
Timestamp:
06/14/08 17:04:00 (6 years ago)
Author:
dankogai
Message:

fixed buzzurl/delicious bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/SBMTotalCount/sbmtotalcount.js

    r13920 r13921  
    11/* 
    2  * $Id: sbmtotalcount.js,v 0.2 2008/06/14 07:59:24 dankogai Exp dankogai $ 
     2 * $Id: sbmtotalcount.js,v 0.3 2008/06/14 08:03:19 dankogai Exp dankogai $ 
    33 */ 
    44 
     
    3737                + 'url=' + encodeURIComponent(uri) + '&cb=' + cb 
    3838        }); 
    39     this.add('delicious', function(js){ return js[0].total_posts }, 
     39    this.add('delicious', function(js){ return js ? js[0].total_posts : 0 }, 
    4040        function(uri, cb){ 
    4141            return 'http://badges.del.icio.us/feeds/json/url/data?'