app/assets/javascripts/sketchily_embed.js~ in sketchily-4.0.0 vs app/assets/javascripts/sketchily_embed.js~ in sketchily-4.0.1

- old
+ new

@@ -1,31 +1,28 @@ -//= require embedapi +//= require svg-edit-2.6/embedapi //= require base64 var svgCanvas = svgCanvas || {}; function submitHandler(event) { var id = event.data; -alert('sub' + id); svgCanvas[id].getSvgString()(function (data, error) { handleSvgData(data, error, id); }); event.preventDefault(); event.stopImmediatePropagation(); } function attachSubmitHandler(event) { var id = event.data; -alert('attach' + id); $("input#" + id).closest("form").on("submit.svgedit_" + id, null, id, submitHandler); } function handleSvgData(data, error, id) { if (error) { alert('Error: ' + error); } else { -alert('handle' + id); var input = $("input#" + id); var form = input.closest("form"); input.attr("value", sketchily_encode64("<?xml version=\"1.0\"?>\n" + data)); form.off("submit.svgedit_" + id); form.one("submit.svgedit_" + id, null, id, attachSubmitHandler);