Created
November 13, 2010 18:50
-
-
Save tommedema/675542 to your computer and use it in GitHub Desktop.
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
Class("Selection.Handler", { | |
use : "./Selection/Framework/rangy-core.js", | |
//static | |
my : { | |
body : function() { | |
console.log("deps loaded static"); | |
console.log(rangy); //RESULTS IN EXCEPTION, NOT DEFINED. | |
}, | |
methods : { | |
init : function() { | |
console.log("Selection.Handler load."); | |
//initialize rangy | |
//rangy.init(); | |
console.log(this); | |
//properly detect selection | |
//fire callback if selection changed | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment