Created
July 27, 2017 18:21
-
-
Save spencer-brown/716a83841ab9947046448ee983cd2972 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
// ... | |
// An example of one of our "custom virtual DOM" functions | |
/** | |
* Updates a template folder's name among the user's list of template folders. | |
* | |
* @param {TemplateFolderModel} templateFolderModel | |
*/ | |
_updateTemplateFolderName(templateFolderModel) { | |
const id = templateFolderModel.get('_id'); | |
this.$(`.js-tag-item[data-id=${id}]`).find('.js-snippet-tag-name').text(templateFolderModel.get('name')); | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment