diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-22 11:15:51 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-22 11:15:51 +0200 |
commit | 6c7883d284640d02d79fc48cbbaaff9c95e62461 (patch) | |
tree | 6e7d20820fed554cb75b953b8a803ff09154dc08 /js/public | |
parent | bcba311485074e75ad62f338cc8159bf99522fab (diff) |
add a unittest for itemcontroller, fix #92
Diffstat (limited to 'js/public')
-rw-r--r-- | js/public/app.js | 4 |
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(); } }; |