[seed] Update style in json-reddit example
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Update style in json-reddit example
- Date: Tue, 28 Apr 2009 16:11:17 -0400 (EDT)
commit 183d310c2ca8f784ec93ef3d3d700c12aebe3a0f
Author: Robert Carr <racarr svn gnome org>
Date: Tue Apr 28 16:02:41 2009 -0400
Update style in json-reddit example
---
examples/json-reddit.js | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/examples/json-reddit.js b/examples/json-reddit.js
index e22964b..9c2324e 100755
--- a/examples/json-reddit.js
+++ b/examples/json-reddit.js
@@ -7,14 +7,13 @@ var reddit = JSON.parse(redditurl.read().get_contents());
stories = reddit.data.children;
-for (i in stories)
-{
- var story = stories[i].data;
- Seed.print("======");
- Seed.print(story.ups + "/" +
- story.downs + " " +
- story.title + " (" +
- story.domain +")" );
- Seed.print(story.author);
+for (i in stories){
+ var story = stories[i].data;
+ Seed.print("======");
+ Seed.print(story.ups + "/" +
+ story.downs + " " +
+ story.title + " (" +
+ story.domain +")" );
+ Seed.print(story.author);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]