Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. angular.module('fs.hampton.search').factory 'SearchResults', (Items) ->
  2. class SearchResults extends Items
  3. constructor: (models = [], opts = {}) ->
  4. @castData = []
  5. super(models, opts)
  6.  
  7. parse: (res) ->
  8. @castData = res.data.casts
  9. res.data.shows
  10.  
  11. castMatches: ->
  12. @castData.map (cast) =>
  13. name: cast.name
  14. show: @shows.get(cast.item_id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement