Index: samples/swarm/SwarmApp.dart |
diff --git a/samples/swarm/SwarmApp.dart b/samples/swarm/SwarmApp.dart |
index 462dcd30572f275598f2606665abc1458e343606..76c53a63e24f70c623b56ff0958c375146a47f73 100644 |
--- a/samples/swarm/SwarmApp.dart |
+++ b/samples/swarm/SwarmApp.dart |
@@ -23,8 +23,8 @@ class Swarm extends App { |
/** Observable UI state. */ |
SwarmState state; |
- Swarm() : super(), onLoadFired = false { |
- Sections.initializeFromUrl((currSections) { |
+ Swarm([bool useCannedData = false]) : super(), onLoadFired = false { |
Emily Fortuna
2013/01/10 02:07:10
I unfortunately had to add this hack because the w
Jennifer Messerly
2013/01/10 02:18:10
yeah that's totally cool. The old code was dumb an
|
+ Sections.initializeFromUrl(useCannedData, (currSections) { |
sections = currSections; |
state = new SwarmState(sections); |
setupApp(); |