Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created November 13, 2010 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommedema/675542 to your computer and use it in GitHub Desktop.
Save tommedema/675542 to your computer and use it in GitHub Desktop.
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