Created
September 25, 2011 19:29
-
-
Save nbartlomiej/1241020 to your computer and use it in GitHub Desktop.
Lisense API draft
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
var wordScanner = new Scanner(WORD_REGEXP); | |
var wordCounter = new Counter(wordScanner); | |
var wordNotifier = new Notifier(wordCounter); | |
wordNotifier.evaluate = function(wordCount){ | |
if(wordCount>1000){ | |
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