Skip to content

Instantly share code, notes, and snippets.

View noahmiller's full-sized avatar

Noah Harrison noahmiller

  • Art & Logic
  • Montpelier, VT
View GitHub Profile
@noahmiller
noahmiller / baseModel.js
Created April 30, 2016 02:03
Backbone.Model Properties by Configuration
/**
* A model base class that extends Backbone.Model to provide both
* common functionality and common model properties.
*
* Common properties are defined by property configuration data objects returned
* by the propConfig getter.
*
* Common functionality determined by propConfig includes:
* - defaults
* - server data parsing