Mercurial > wikked
changeset 297:eb4897943264
Don't assume the `url` is a function.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 28 Sep 2014 23:28:59 -0700 |
parents | d1e7f4c35afd |
children | 8bf279b1e8f8 |
files | wikked/assets/js/wikked/models.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/assets/js/wikked/models.js Sun Sep 28 23:24:44 2014 -0700 +++ b/wikked/assets/js/wikked/models.js Sun Sep 28 23:28:59 2014 -0700 @@ -218,7 +218,7 @@ var model = this; this.footer.addExtraUrl( 'JSON', - function() { return model.url(); }, + function() { return _.result(model, 'url'); }, -1, 'cog'); },