Hi, I have some question about Feedreader that in SDK packet.
1. In application.js, there is coding like this :
selectFeed : function(url)
{
var value = this._feeds[url];
value ? this.setSelectedFeed(value) : this.resetSelectedFeed();
}
what is the meaning of this code ===> value ? this.setSelectedFeed(value) :
this.resetSelectedFeed(); ?
If i take a look at application.js, there is not function setSelectedFeed and
resetSelectedFeed, so where those function come from ?
2. In my own application, I copy the addFeed function from application.js :
addFeed : function(title, url)
{
var db = this._feeds;
if (db[url])
{
alert("The feed " + title + " is already in your subscription list.");
return;
}
db[url] =
{
title : title,
items : [],
loader : qx.lang.Function.bind(this._loadJsonFeed, this, url),
added : new Date
};
if (this._tree) {
this._tree.refreshView(url);
}
}
This row ===> if (db[url]) make an error that show : Object Expected. Why ?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel