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

fixed buzzurl bug

Files:
1 modified

Legend:

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

    r13903 r13920  
    11/* 
    2  * $Id: sbmtotalcount.js,v 0.1 2008/06/14 06:06:49 dankogai Exp dankogai $ 
     2 * $Id: sbmtotalcount.js,v 0.2 2008/06/14 07:59:24 dankogai Exp dankogai $ 
    33 */ 
    44 
     
    3232                + '&link=' + encodeURIComponent(uri) + '&callback=' + cb 
    3333        }); 
    34     this.add('buzzurl', function(js){ return js[0].users }, 
     34    this.add('buzzurl', function(js){ return js ? js[0].users : 0 }, 
    3535        function(uri, cb){ 
    3636            return 'http://api.buzzurl.jp/api/counter/v1/json?'