0

将飞镖更新到版本 0.8.7 后,铬崩溃。

请看以下代码:

  1. 自定义元素:
<polymer-element name="custom-elm">
      <template>
        <div class="container">
          <article>
            <content>
              <!-- PAGE CONTENT HERE -->
            </content>
          </article>
        </div>
      </template>
      <script type="application/dart" src="custom_elm.dart"></script>
    </polymer-element>

<!-- language-all: dart -->
import 'package:polymer/polymer.dart';
@CustomTag('custom-elm')
class CustomElement extends PolymerElement {

  bool get applyAuthorStyles => true;

  CustomElement.created() : super.created() {    
  }
}
  1. 索引.html

<html>
  <head>
    <title>index page</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />

    <!-- Bootstrap 3, jQuery -->
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>    

    <link rel="import" href="custom_elm.html">
  </head>
  <body>

  <custom-elm>
    <!-- some page content -->

    <input id="nickname" class="form-control" placeholder="Some input"/>

    <!-- some page content -->
  </custom-elm>

  <script type="application/dart" src="index.dart"></script>
  <script src="packages/browser/dart.js"></script>
  </body>
</html>


<!-- language-all: dart -->
import 'package:polymer/polymer.dart';
void main() {
  initPolymer();
}

当我鼠标单击输入时,dartium 崩溃。怎么了?请注意,如果我不使用脚本 bootstrap.min.js (Bootstrap 3),则此代码有效。

4

1 回答 1

0

在 code.google.com http://code.google.com/p/dart/issues/detail?id=14611上看到这个问题

于 2013-10-30T10:43:38.567 回答