]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
added default to news topic
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 29 Jun 2010 22:43:46 +0000 (15:43 -0700)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 29 Jun 2010 22:43:46 +0000 (15:43 -0700)
popcorn.js

index 9ed483a4600b608863e0090b231325a816b7f5ac..87156f7a2ab2f52b0ea749733947979d129f2f74 100644 (file)
     var options = {
       format : "300x250",
       queryList : [
-        {q: this.params.topic}
+        {q: this.params.topic || "Top Stories"}
       ]
     };
     var newsShow = new google.elements.NewsShow(content, options);