Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Fixed a few points #1

Closed
wants to merge 1 commit into from
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
8 changes: 4 additions & 4 deletions demo/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: angular-dart-demo
name: angular_dart_demo
version: 0.0.1
dependencies:
angular:
path: ..
browser: any
unittest: any
js: any
angular:
path: ..
unittest: any
2 changes: 2 additions & 0 deletions demo/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ <h1>A Demo of the Repeat Directive</h1>
</ul>

<h1>A Demo of Components</h1>
<!--
<div tabs>
<div pane title="Pane 1">Pane 1 Contents</div>
<div pane title="Pane 2">Pane 2 Contents</div>
</div>
-->
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion demo/web/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TabsController implements Controller {
List panes;
var selectedPanes = new Expando<dom.Node>();

MainController(Scope this.$scope) {
TabsController(Scope this.$scope) {
panes = $scope.panes = [];

$scope.selected = (pane) {
Expand Down
6 changes: 3 additions & 3 deletions lib/scope.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Event {
Scope currentScope;
bool propagationStopped = false;
bool defaultPrevented = false;

Event(this.name, this.targetScope);

stopPropagation () => propagationStopped = true;
Expand Down Expand Up @@ -245,7 +245,7 @@ class Scope implements Map {
} else {
next = current._nextSibling;
if (next == null) {
while(current !== target && (next = current._nextSibling) == null) {
while(current != target && (next = current._nextSibling) == null) {
current = current.$parent;
}
}
Expand Down Expand Up @@ -386,7 +386,7 @@ class Scope implements Map {
} else {
next = current._nextSibling;
if (next == null) {
while(current !== target && (next = current._nextSibling) == null) {
while(current != target && (next = current._nextSibling) == null) {
current = current.$parent;
}
}
Expand Down