Skip to content

Instantly share code, notes, and snippets.

@tilgovi
Last active August 29, 2015 14:00
Show Gist options
  • Save tilgovi/11015379 to your computer and use it in GitHub Desktop.
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