fengmk2/node-weibo — Issue #8: tapi.js 的update方法
Author: iamlaobie
Created: 2012-01-16 03:40:05+00:00
State: open

234 update: function(data, callback, context) {
235 if (!data.pic) {
236 this.api_dispatch(data).update(data, callback, context);
237 }
238 // 包含图片
239 var pic = data.pic;
240 delete data.pic;
241 this.api_dispatch(data).upload(data, pic, callback, context);
242 },

如果没有pic的话，应该在update后跟一个return吧？