mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-26 05:16:55 +00:00
Removed old code
This commit is contained in:
parent
6ff361cdc2
commit
3f1e8ee79a
@ -31,37 +31,6 @@ exports.showChooser = function() {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Select the appropriate chooser item given a touch/mouse position in screen coordinates
|
||||
*/
|
||||
// exports.select = function(y) {
|
||||
// if(this.children.length > 0) {
|
||||
// var targetIndex = Math.floor(this.children[0].domNode.childNodes.length * (y/window.innerHeight)),
|
||||
// target = this.children[0].domNode.childNodes[targetIndex];
|
||||
// if(target) {
|
||||
// this.deselect();
|
||||
// this.selectedNode = target;
|
||||
// $tw.utils.addClass(target,"selected");
|
||||
// }
|
||||
// }
|
||||
// };
|
||||
|
||||
// exports.deselect = function() {
|
||||
// if(this.selectedNode) {
|
||||
// $tw.utils.removeClass(this.selectedNode,"selected");
|
||||
// this.selectedNode = null;
|
||||
// }
|
||||
// };
|
||||
|
||||
// exports.action = function() {
|
||||
// if(this.selectedNode) {
|
||||
// var navEvent = document.createEvent("Event");
|
||||
// navEvent.initEvent("tw-navigate",true,true);
|
||||
// navEvent.navigateTo = this.selectedNode.getAttribute("data-link");
|
||||
// this.domNode.dispatchEvent(navEvent);
|
||||
// }
|
||||
// };
|
||||
|
||||
/*
|
||||
Set the position of the chooser panel within its wrapper given a touch/mouse position in screen coordinates
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user