canjs / can-connect

Model layer utilities for every JavaScript framework! Assemble real-time, high performance, restful data connections.
https://canjs.com/doc/can-connect.html
MIT License
29 stars 16 forks source link

Use can.new symbol to create new List types #481

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

This changes it so that lists are created with can.new. This allows for list types whose constructor do not expect a single argument as an array. They can implement a can.new that takes the single array value and does whatever they need to create their new list.