mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
Fix classic list viewer to use the new browser abstraction layer
This commit is contained in:
parent
da43887d7c
commit
b1f3d169fb
@ -51,7 +51,7 @@ ClassicListView.prototype.remove = function(index) {
|
|||||||
targetElement.parentNode.insertBefore(wrapperElement,targetElement);
|
targetElement.parentNode.insertBefore(wrapperElement,targetElement);
|
||||||
wrapperElement.appendChild(targetElement);
|
wrapperElement.appendChild(targetElement);
|
||||||
// Attach an event handler for the end of the transition
|
// Attach an event handler for the end of the transition
|
||||||
wrapperElement.addEventListener($tw.browser.transitionEnd,function(event) {
|
wrapperElement.addEventListener($tw.utils.convertEventName("transitionEnd"),function(event) {
|
||||||
if(wrapperElement.parentNode) {
|
if(wrapperElement.parentNode) {
|
||||||
wrapperElement.parentNode.removeChild(wrapperElement);
|
wrapperElement.parentNode.removeChild(wrapperElement);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user