summaryrefslogtreecommitdiffstats
path: root/js/public
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-22 11:15:51 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-22 11:15:51 +0200
commit6c7883d284640d02d79fc48cbbaaff9c95e62461 (patch)
tree6e7d20820fed554cb75b953b8a803ff09154dc08 /js/public
parentbcba311485074e75ad62f338cc8159bf99522fab (diff)
add a unittest for itemcontroller, fix #92
Diffstat (limited to 'js/public')
-rw-r--r--js/public/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/public/app.js b/js/public/app.js
index de1725c2c..8922625ab 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -1283,8 +1283,10 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
var lowestItemId;
lowestItemId = this._itemModel.getLowestId();
- if (angular.isDefined(lowestItemId)) {
+ if (lowestItemId !== 0) {
return this._persistence.getItems(this._activeFeed.getType(), this._activeFeed.getId(), lowestItemId, callback);
+ } else {
+ return callback();
}
};