【发布时间】:2014-11-05 08:39:57
【问题描述】:
大约 6 个月以来,我们一直在使用项目 instanceof gapi.drive.realtime.CollaborativeList 来检测属性是否为 CollaborativeList。这在上周开始失败,我们检查了 gapi.drive.realtime,似乎没有 CollabroativeList 或文档中描述的任何其他模型存在。 https://developers.google.com/drive/realtime/reference/。我们仍然能够访问标准驱动器功能,因此这似乎不是身份验证问题。进行该调用的函数包含在 gapi.load("drive-realtime", function() {}) 中。有没有人知道为什么模型不再存在?
gapi.load("drive-realtime", function() {
if("test" instanceof gapi.drive.realtime.CollaborativeList){
console.log("hi")
}
})
这个函数会返回 Uncaught TypeError: Expecting a function in instanceof check, but got undefined
这是因为 gapi.drive.realtime 中不存在 gapi.drive.realtime.CollaborativeList
【问题讨论】:
-
您能否包含一段演示问题的代码?
标签: google-drive-api google-drive-realtime-api