Last active
December 21, 2015 08:18
-
-
Save skipjac/6276819 to your computer and use it in GitHub Desktop.
defers in zendesk apps http://underscorejs.org/#defer
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
events: { | |
'app.activated': 'appActivated', | |
'ticket.form.id.changed': 'hideCustomField' | |
}, | |
appActivated: function() { | |
this.hideCustomField(); | |
}, | |
hideCustomField: function() { | |
var self = this; | |
_.defer(function() { | |
self.ticketFields("custom_field_x").hide(); | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment