MDL-47368 core JS: dragdrop click move fills the dom with divs
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 27 Oct 2014 17:26:40 +0000 (17:26 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 28 Oct 2014 11:32:44 +0000 (11:32 +0000)
commit08ab7a3c107c5fbd735ad6e133e67e81229126e8
tree98a9dfd903c6a7fff6e24b801f429b96aa71b8f6
parenta69f81f0d39726ded5f8aa2c3c2ac287e20e721e
MDL-47368 core JS: dragdrop click move fills the dom with divs

Every time you click the move icon, it builds a new dialogue with a list
of drop targets, but it never discards the old ones. Not only does this
fill the DOM with junk, but it also causes Behat tests to fail, since
the old dialogues come first, and are hidden, but contain links with the
same text that you are trying to click.
lib/yui/build/moodle-core-dragdrop/moodle-core-dragdrop-debug.js
lib/yui/build/moodle-core-dragdrop/moodle-core-dragdrop-min.js
lib/yui/build/moodle-core-dragdrop/moodle-core-dragdrop.js
lib/yui/src/dragdrop/js/dragdrop.js