Skip to content

Instantly share code, notes, and snippets.

@spencer-brown
Created July 27, 2017 18:21
Show Gist options
  • Save spencer-brown/716a83841ab9947046448ee983cd2972 to your computer and use it in GitHub Desktop.
Save spencer-brown/716a83841ab9947046448ee983cd2972 to your computer and use it in GitHub Desktop.
// ...
// 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