jquery: some remainings [0] errors

This commit is contained in:
jean-emmanuel 2018-01-25 08:59:14 +01:00
parent c62aea96ec
commit 5f65fa2009
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ var sidepanelData = [
title:'Store',
action:()=>{
state.quickSave()
DOM.get('.quickload').classList.remove('disabled')
DOM.get('.quickload')[0].classList.remove('disabled')
}
},
{

View file

@ -46,7 +46,7 @@ module.exports = class _switchers_base extends _widgets_base {
for (var i in widgets) {
if (widgets[i].widget[0].contains(widget.widget[0])) return true
if (widgets[i].childrenHashes.indexOf(widget.hash) != -1) return true
}