【发布时间】:2013-12-25 23:41:50
【问题描述】:
我有两个使用 Google (docs) Picker API 的 Dart 项目。一个是“原始” Dart,另一个使用 Polymer 框架。
我有一个大问题,在“原始”Dart 项目上运行良好,但是当我调用 Polymer 时,Dartium 会崩溃:
var picker = new google.picker.PickerBuilder().addView(google.picker.ViewId.SPREADSHEETS).setDeveloperKey(developerKey).setCallback(pickerCallback).setOrigin(window.location.protocol + '//' + window.location.host).build();
// Add the view to the DOM
picker.setVisible(true);
实际上是 picker.setVisible(true); 导致 Dartium 崩溃。
你能想到为什么会这样吗?没有抛出任何错误,它直接进入“Aw, Snap!”。
更新:
此问题已在最新的 SDK 版本 0.8.10.3_r29803 中得到修复
【问题讨论】:
标签: javascript interop dart polymer google-picker