Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions lib/core/zone.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@ class LongStackTrace {
* A better zone API which implements onTurnDone.
*/
class NgZone {
final async.Zone _outerZone;
final async.Zone _outerZone = async.Zone.current;
async.Zone _zone;

NgZone()
: _outerZone = async.Zone.current
{
NgZone() {
_zone = _outerZone.fork(specification: new async.ZoneSpecification(
run: _onRun,
runUnary: _onRunUnary,
scheduleMicrotask: _onScheduleMicrotask,
handleUncaughtError: _uncaughtError
));
// Prevent silently ignoring uncaught exceptions by forwarding such
// exceptions to the outer zone by default.
onError = (e, s, ls) => _outerZone.handleUncaughtError(e, s);
}


Expand Down Expand Up @@ -99,7 +100,7 @@ class NgZone {
_errorThrownFromOnRun = true;
rethrow;
} finally {
_inFinishTurn = false;
_inFinishTurn = false;
}
}

Expand Down
9 changes: 7 additions & 2 deletions lib/core_dom/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,10 @@ class ViewPort {

// TODO remove once everybody is using the new names

class Block extends View {}
class BlockHole extends ViewPort {}
class Block extends View {
Block(List<dom.Node> nodes) : super(nodes);
}

class BlockHole extends ViewPort {
BlockHole(dom.Node placeholder, NgAnimate animate) : super(placeholder, animate);
}
8 changes: 6 additions & 2 deletions lib/core_dom/view_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,9 @@ class ElementProbe {

// TODO remove once everybody is using the new names

class BlockFactory extends ViewFactory {}
class BoundBlockFactory extends BoundViewFactory {}
abstract class BlockFactory extends ViewFactory {
}

class BoundBlockFactory extends BoundViewFactory {
BoundBlockFactory(ViewFactory viewFactory, Injector injector) : super(viewFactory, injector);
}
2 changes: 1 addition & 1 deletion test/io/test_files/templates/partial.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of 'main.dart';
part of test_files.main;

@NgComponent(
selector: 'my-component',
Expand Down