Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('fs.hampton.search').factory 'SearchResults', (Items) ->
- class SearchResults extends Items
- constructor: (models = [], opts = {}) ->
- @castData = []
- super(models, opts)
- parse: (res) ->
- @castData = res.data.casts
- res.data.shows
- castMatches: ->
- @castData.map (cast) =>
- name: cast.name
- show: @shows.get(cast.item_id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement