-
-
Save kjohnson/0e13fb89d4befc34ea61a4e30212f8e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myConditionalLogicController = Marionette.Object.extend({ | |
initialize: function () { | |
this.listenTo( Backbone.Radio.channel('fields'), 'change:model', this.fieldModelChange ); | |
}, | |
fieldModelChange: function( fieldModel ) { | |
if ( fieldModel.changed.visible !== true) return; | |
// code to be run when a conditional is field is shown | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment