Commit 60402e60 authored by Jérome Perrin's avatar Jérome Perrin Committed by Ioannis Papagiannopoulos

update TODOs

parent d1da02fe
...@@ -494,12 +494,12 @@ ...@@ -494,12 +494,12 @@
return removeElement(gadget, node_id); return removeElement(gadget, node_id);
}); });
// XXX the gadget to use on node click should be an option
return gadget.declareGadget("../fieldset/index.html", { return gadget.declareGadget("../fieldset/index.html", {
element: fieldset_element, element: fieldset_element,
scope: 'fieldset' scope: 'fieldset'
}) })
.push(function (fieldset_gadget) { .push(function (fieldset_gadget) {
// XXX those promises can probably be merged
return RSVP.all([fieldset_gadget, return RSVP.all([fieldset_gadget,
fieldset_gadget.render({value: node_data, fieldset_gadget.render({value: node_data,
property_definition: schema}, property_definition: schema},
...@@ -554,7 +554,7 @@ ...@@ -554,7 +554,7 @@
); );
} }
// XXX make this an option, or use CSS from class_definition // XXX make node template an option, or use CSS from class_definition
/*jslint nomen: true*/ /*jslint nomen: true*/
domElement = domParser.parseFromString( domElement = domParser.parseFromString(
node_template({ node_template({
...@@ -582,7 +582,9 @@ ...@@ -582,7 +582,9 @@
gadget.notifyDataChanged(); gadget.notifyDataChanged();
} }
// XXX why is that needed ? // This will register a dragover handler that prevents default on the event,
// so that we can wait for drop
// TODO: add in waitForDrop
function waitForDragover(gadget) { function waitForDragover(gadget) {
return loopEventListener( return loopEventListener(
gadget.props.main, gadget.props.main,
...@@ -601,7 +603,6 @@ ...@@ -601,7 +603,6 @@
} }
/*jslint unparam: true*/ /*jslint unparam: true*/
function resolver(resolve, reject) { function resolver(resolve, reject) {
// XXX name this function seriously
callback = function (evt) { callback = function (evt) {
try { try {
var class_name = JSON.parse( var class_name = JSON.parse(
......
Markdown is supported
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