mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 01:16:56 +00:00
incr 同步完成, 待send changes
This commit is contained in:
11
node_modules/common.js
generated
vendored
11
node_modules/common.js
generated
vendored
@@ -8,7 +8,7 @@ var ObjectId = require('objectid');
|
||||
// console.log(gui.App);
|
||||
|
||||
function log(o) {console.log(o)}
|
||||
|
||||
// log("<>>>>>>>>>>>>>>>>>>>>");
|
||||
var Common = {
|
||||
objectId: function() {
|
||||
return ObjectId()
|
||||
@@ -22,11 +22,12 @@ var Common = {
|
||||
if(!ret) {
|
||||
return ret;
|
||||
}
|
||||
// 数组
|
||||
if('length' in ret) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(typeof ret == 'object') {
|
||||
// 数组
|
||||
if('length' in ret) {
|
||||
return true;
|
||||
}
|
||||
if('Ok' in ret && !ret.Ok) { // 指明了Ok
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user