             $jgt: event.positionKey
             $regex: (positionKeyPrefix && "^#{positionKeyPrefix}") || undefined
         simplesort: 'positionKey'
-        limit: padding
+        limit: @padding
       remote:
         discussion_id: @discussion.id
         position_key_gt: event.positionKey
         position_key_sw: positionKeyPrefix || null
         order_by: 'position_key'
-        per: padding
+        per: @padding
 
   loadBefore: (event) ->
     @loading = event.id

import EventBus         from '@/shared/services/event_bus'
import Session from '@/shared/services/session'

padding = 25

export default class ThreadLoader
  constructor: (discussion) ->

            $regex: (positionKeyPrefix && "^#{positionKeyPrefix}") || undefined
        simplesort: 'positionKey'
        simplesortDesc: true
        limit: @padding
      remote:
        discussion_id: @discussion.id
        position_key_lt: event.positionKey
        position_key_sw: positionKeyPrefix || null
        order_by: 'position_key'
        order_desc: 1
        per: @padding

  addLoadCommentRule: (commentId) ->
    @titleKey = 'strand_nav.from_comment'
