derickbailey/backbone.modelbinding — Issue #32: Subsequent calls to bind overwrite custom global binding configuration
Author: msaffitz
Created: 2011-10-17 16:14:24+00:00
State: open

I've got a custom global config:

Backbone.ModelBinding.Configuration.configureBindingAttributes({all: "name", radio: "binding"})

On the first call to `Backbone.ModelBinding.bind(this)` the custom global binding config is applied. On all subsequent calls to `Backbone.ModelBinding.bind(this)` the default binding config is applied.

This appears to be due to the call on line 45 of backbone.modelbinding.js:

Backbone.ModelBinding.Configuration.restoreBindingAttrConfig();

which restores the configuration to the default binding config, not to the custom binding config.