Commit 2b4f0d76 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

remove debugging messages, fix stray formatting error

parent a87af6d9
......@@ -84,7 +84,6 @@ function canvas_find_blur() {
}
function canvas_find_focus() {
pdgui.post("flub!");
var state = canvas_events.get_state();
canvas_events.search();
}
......@@ -349,8 +348,8 @@ var canvas_events = (function() {
return false;
},
text_mouseup: function(evt) {
pdgui.post("mouseup target is " +
evt.target + " and textbox is " + textbox());
//pdgui.post("mouseup target is " +
// evt.target + " and textbox is " + textbox());
//evt.stopPropagation();
//evt.preventDefault();
return false;
......@@ -448,9 +447,9 @@ var canvas_events = (function() {
(evt.pageY + svg_view.y));
},
iemgui_label_mouseup: function(evt) {
pdgui.post("lifting the mousebutton on an iemgui label");
//pdgui.post("lifting the mousebutton on an iemgui label");
// Set last state (none doesn't count as a state)
pdgui.post("previous state is " + canvas_events.get_previous_state());
//pdgui.post("previous state is " + canvas_events.get_previous_state());
canvas_events[canvas_events.get_previous_state()]();
}
},
......
......@@ -406,7 +406,7 @@ function build_file_dialog_string(obj) {
exports.build_file_dialog_string = build_file_dialog_string;
function gui_canvas_saveas (name, initfile, initdir, close_flag) {
function gui_canvas_saveas(name, initfile, initdir, close_flag) {
var input, chooser,
span = patchwin[name].window.document.querySelector("#saveDialogSpan");
if (!fs.existsSync(initdir)) {
......@@ -425,7 +425,6 @@ function gui_canvas_saveas (name, initfile, initdir, close_flag) {
nwworkingdir: initdir,
accept: ".pd"
});
post("input is " + input);
span.innerHTML = input;
chooser = patchwin[name].window.document.querySelector("#saveDialog");
chooser.onchange = function() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment