appMobi/jqMVC — pull request #11 by dpesch (2012-11-28 11:03:59+00:00)
Title: new methods: getStorageAdapter(), getBaseOptions() for extended (externa...

...l) model classes

This change allows external model classes to extend jq.mvc.model and to integrate in jq.mvc without »polluting« the model object namespace. See example jq.mvc.modelDb:
https://github.com/dpesch/jqMVC/blob/dev/src/class.model_db.js

I removed the extension of the model object with the storage object in $.mvc.model.extend() because this would »pollute« the model object with all attributes and functions of the storage adapter. The »protection« in model::set() won't protect the storage attributes.

I'll hope this is Ok for you, Ian?