将飞镖更新到版本 0.8.7 后,铬崩溃。
请看以下代码:
- 自定义元素:
<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() {
}
}
- 索引.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),则此代码有效。