2

在将 Angular.dart 0.9.10 与 bootstrap 3.1.1 一起使用并编译为 Javascript 时,我在下面附上了一个丑陋的堆栈跟踪。

每当我关注文本字段或输入一些文本时,堆栈跟踪都会在控制台中打印。

这以前有效,所以我想知道这是否是 shadow_dom 实现的错误?

该应用程序目前非常简单,并且可以与 Dartium 一起正常工作。在 Firefox 和 Chrome 中编译 javascript 后会出现同样的问题。

当我从 index.html 中删除以下行时,它可以工作

<script src="packages/shadow_dom/shadow_dom.debug.js"></script>

堆栈跟踪 纯文本中的堆栈跟踪:

TypeError {stack: "TypeError: Object # has no method 'getAt.../packages/shadow_dom/shadow_dom.debug.js:2805:28)", message: "Object # has no method 'getAttribute'"}
消息:“对象#没有方法'getAttribute'”
堆栈:“类型错误:对象#在 Function.Sizzle.attr (http://localhost:8000/bower_components/jquery/dist/jquery.js:1422:9) 处没有方法 'getAttribute'↵ 在数组中。(http: //localhost:8000/bower_components/jquery/dist/jquery.js:1618:25)↵ 在 http://localhost:8000/bower_components/jquery/dist/jquery.js:2116:22↵ 在 superMatcher (http:// /localhost:8000/bower_components/jquery/dist/jquery.js:2322:12)↵ 在选择 (http://localhost:8000/bower_components/jquery/dist/jquery.js:2483:28)↵ 在 Function.Sizzle (http://localhost:8000/bower_components/jquery/dist/jquery.js:838:9)↵ 在 HTMLDocument.jQuery.event.handlers (http://localhost:8000/bower_components/jquery/dist/jquery.js :4416:48)↵ 在 HTMLDocument.jQuery.event.dispatch (http://localhost:8000/bower_components/jquery/dist/jquery.js:4353:40)↵ 在 Document.elemData。处理 (http://localhost:8000/bower_components/jquery/dist/jquery.js:4057:28)↵ 在调用 (http://localhost:8000/packages/shadow_dom/shadow_dom.debug.js:2805:28) "
__proto__: 错误
构造函数:函数 TypeError() { [本机代码] }
名称:“类型错误”
堆栈:未定义
__proto__: d
 “TypeError:对象#没有方法'getAttribute'
    在 Function.Sizzle.attr (http://localhost:8000/bower_components/jquery/dist/jquery.js:1422:9)
    在阵列。(http://localhost:8000/bower_components/jquery/dist/jquery.js:1618:25)
    在 http://localhost:8000/bower_components/jquery/dist/jquery.js:2116:22
    在 superMatcher (http://localhost:8000/bower_components/jquery/dist/jquery.js:2322:12)
    在选择(http://localhost:8000/bower_components/jquery/dist/jquery.js:2483:28)
    在 Function.Sizzle (http://localhost:8000/bower_components/jquery/dist/jquery.js:838:9)
    在 HTMLDocument.jQuery.event.handlers (http://localhost:8000/bower_components/jquery/dist/jquery.js:4416:48)
    在 HTMLDocument.jQuery.event.dispatch (http://localhost:8000/bower_components/jquery/dist/jquery.js:4353:40)
    在 Document.elemData.handle (http://localhost:8000/bower_components/jquery/dist/jquery.js:4057:28)
    在调用(http://localhost:8000/packages/shadow_dom/shadow_dom.debug.js:2805:28)”
4

1 回答 1

3

我不确定确切的细节为什么,但是 angular dart 有一个 boostrap 实现: https ://github.com/akserg/angular.dart.ui

很可能,那个对你会更好。

最好的问候,保罗

于 2014-04-14T00:45:44.270 回答