Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Conversation

@stryju
Copy link
Contributor

@stryju stryju commented Jun 25, 2015

the reasoning behind this is to add an option to provide "default value" or provide few sources for given model

see https://github.com/ProLoser/AngularJS-ORM/blob/adc766978025a99769a7e1b2a7fb125933f14026/modules/Task/Task.js#L101 for usecase

@ProLoser ProLoser closed this Jun 25, 2015
@ProLoser
Copy link
Member

I'd rather just do super(Object.assign({default:true}, data))

@stryju stryju deleted the feature/baseobject-constructor branch June 25, 2015 09:56
@stryju
Copy link
Contributor Author

stryju commented Jun 25, 2015

makes sense :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants