     if showAll
       @page = 'all'
       
-      # $('#nextPageLoading').show()
-      # $('<div class="thumb-2d"></div>').insertAfter('.matrix')
-      # $('.matrix').hide()
-      # $('<div class="matrix"></div>').append('#entryField')
       @$container = $('.matrix')
     
     log('page: ' + @page)


class DreamfieldModel
  load: (filters={})->
    $.extend(filters, @filterOpts())
    $.getJSON("/dreamfield.json", {filters: filters}).promise()  
  updateFilters: ->
    @filters = []
    # get new filter values (will be .filter .value to target the span)
    $.each $('.trigger span.value'), (key, value) =>
      @filters.push($(value).text())  # XXX: data tightly coupled to display.
  filterOpts: ->
    # type: @filters[0]
    # friend: @filters[1]
    # starlight: @filters[2]

        
  constructor: (dreamfieldModel)->
    @page = 1
    @dreamfield = dreamfieldModel
    @$container = $('#pagination')
    
    $('.next').click( (event) =>
      log('next')
