这应该打印出集合中的所有内容,但它只打印出两个元素。
为什么它不会打印出整个列表?这是某种种族案件吗?
class window.Restful
constructor:->
_.each @collection, (action,kind)=>
$('.actions').append "<div>#{action} #{kind}</div>"
class Material extends Restful
namespace: 'admin/api'
table_name: 'materials'
constructor:(@$rootScope,@$http)->
super
collection:
get: 'downloaded'
get: 'incomplete'
get: 'submitted'
get: 'marked'
get: 'reviewed'
get: 'corrected'
get: 'completed'
post: 'sort'
post: 'sort_recieve'
new Material()