Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 454 Bytes

no-backbone-get-set-outside-model.md

File metadata and controls

13 lines (8 loc) · 454 Bytes

Pattern: Backbone get()/set() called outside of owning model

Issue: -

Description

Avoid using model.get('x') and model.set('x', value) Backbone accessors outside of the owning model. This breaks type safety and you should define getters and setters for your attributes instead.

Further Reading