Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
60402e60
Commit
60402e60
authored
Nov 21, 2014
by
Jérome Perrin
Committed by
Ioannis Papagiannopoulos
Dec 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update TODOs
parent
d1da02fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dream/platform/src/jsplumb/jsplumb.js
dream/platform/src/jsplumb/jsplumb.js
+5
-4
No files found.
dream/platform/src/jsplumb/jsplumb.js
View file @
60402e60
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment