Skip to content

Instantly share code, notes, and snippets.

@nbartlomiej
Created September 27, 2011 16:59
Show Gist options
  • Save nbartlomiej/1245611 to your computer and use it in GitHub Desktop.
Save nbartlomiej/1245611 to your computer and use it in GitHub Desktop.
Lisense API draft, callbacks
var wordsPerSentenceNotifier = new Notifier(wordCounter, sentenceCounter);
wordsPerSentenceNotifier.evaluate = function(wordCount, sentenceCount){
if(wordCount/sentenceCount>50){
var n = new Notification("I am so not going to read it.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment