Default argument value for options in Discussion so that inline discussions can still

work without modification. Eventually we'll want to switch the pagination there to
match the pagination on the main forum though.
This commit is contained in:
Ibrahim Awwal
2012-09-13 17:53:30 -07:00
parent 5b9967e5a0
commit 236756e4ca

View File

@@ -2,7 +2,7 @@ if Backbone?
class @Discussion extends Backbone.Collection
model: Thread
initialize: (models, options)->
initialize: (models, options={})->
@pages = options['pages'] || 1
@current_page = 1
@bind "add", (item) =>