Skip to content

Instantly share code, notes, and snippets.

@tilgovi
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save tilgovi/11015379 to your computer and use it in GitHub Desktop.

Select an option

Save tilgovi/11015379 to your computer and use it in GitHub Desktop.
Annotator selector extension pseudocode
selectorExtension = require('./selectorExtension')
CustomAnnotator = Annotator.extend(selectorExtension)
annotator = new CustomAnnotator(...)
module.exports.describeSelection = (selection) ->
selectors = # get the selectors however this module wants
selectors.concat(super(selection))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment