Skip to content

Commit

Permalink
Move main() out into its own file for easier frogc-ing
Browse files Browse the repository at this point in the history
  • Loading branch information
eee-c committed Jan 12, 2012
1 parent abce5f3 commit 31b4657
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 1 addition & 12 deletions examples/timer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,5 @@ <h1>Fibonacci!</h1>
<div id="status"></div>
</body>

<script type="application/dart">
#import('dart:html');
#import('pretty_stopwatch.dart');
#source('fib_printer.dart');
void main() {
var list = [5, 40, 39, 32, 6, 41];

var timer = new PrettyStopwatch.start();
list.forEach(fib_printer);
timer.stop();
}
</script>
<script type="application/dart" src="main.dart"></script>
</html>
10 changes: 10 additions & 0 deletions examples/timer/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#import('dart:html');
#import('pretty_stopwatch.dart');
#source('fib_printer.dart');
void main() {
var list = [5, 40, 39, 32, 6, 41];

var timer = new PrettyStopwatch.start();
list.forEach(fib_printer);
timer.stop();
}

0 comments on commit 31b4657

Please sign in to comment.