mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
After this CL, you can use <sky-element> to describe custom elements. The current iteration is very basic and is hardcoded to "example", but its a start. This CL renames the |init| function to |_init| to prevent importers from calling it directly. Also, we now pass the <script> element to |_init| to give some context. R=ojan@chromium.org, eseidel@chromium.org Review URL: https://codereview.chromium.org/950493003
13 lines
228 B
Plaintext
13 lines
228 B
Plaintext
<script>
|
|
import 'dart-import.dart' as base;
|
|
// Use the dart import so it doesn't ignore it.
|
|
class TestClass extends base.BaseClass {
|
|
}
|
|
|
|
bool didInit = false;
|
|
|
|
void _init(_) {
|
|
didInit = (new TestClass() != null);
|
|
}
|
|
</script>
|