backbone.stickit
backbone.stickit copied to clipboard
visibility of attribute on other attribute change
I do not understand why visibility handled only for change event only current attribute in config.
I suppose that there are many use cases to hide/show inputs based on other attribute changes.
I suppose to use next code in initializeVisible function
_.each(_.flatten([modelAttr]), function(attr) {
observeModelEvent(model, 'change', config, visibleCb);
});
Or maybe there is another way to hide/show inputs ?