Skip to content

Instantly share code, notes, and snippets.

@sigmundch
sigmundch / a.dart
Last active August 29, 2015 14:24
defer imports + angular2 transformers
library a;
import 'loader.dart';
// Normal code dependencies we discover automatically.
import 'b.dart';
import 'c.dart' deferred as c;
foo() {
// Instead of c.loadLibrary() we do:
@sigmundch
sigmundch / test.html
Created October 7, 2014 19:24
textContent shows up as null with the polyfill.
<script src='platform.js'></script>
<script>
var a = document.createElement('div');
var r = a.createShadowRoot();
console.log('before: ' + a.innerHTML + ' ' + a.textContent);
a.textContent = null;
console.log('after: ' + a.innerHTML + ' ' + a.textContent);
</script>