Last active
August 29, 2015 14:00
-
-
Save tilgovi/11015379 to your computer and use it in GitHub Desktop.
Annotator selector extension pseudocode
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
selectorExtension = require('./selectorExtension') | |
CustomAnnotator = Annotator.extend(selectorExtension) | |
annotator = new CustomAnnotator(...) |
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
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