lint: clean
This commit is contained in:
parent
26284797d7
commit
2db95bb764
4 changed files with 5 additions and 9 deletions
|
|
@ -29,7 +29,7 @@ module.exports = function editField(editor, widget, propName, defaultValue){
|
|||
return field
|
||||
}
|
||||
|
||||
input = DOM.create(`<select class="input no-keybinding"/>`)
|
||||
input = DOM.create('<select class="input no-keybinding"/>')
|
||||
var innerHTML = ''
|
||||
|
||||
for (let category in widgetCategories) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
var {widgets} = require('../widgets/'),
|
||||
{Popup} = require('../ui/utils'),
|
||||
editField = require('./edit-field'),
|
||||
{updateWidget, incrementWidget} = require('./data-workers'),
|
||||
keyboardJS = require('keyboardjs'),
|
||||
|
|
@ -291,10 +290,7 @@ var Editor = class Editor {
|
|||
|
||||
this.form.appendChild(DOM.create(`
|
||||
<div class="separator">
|
||||
${this.selectedWidgets.length > 1 ?
|
||||
'<span class="accent">Multiple Widgets</span>' :
|
||||
'<span>Widget</span>'
|
||||
}
|
||||
${this.selectedWidgets.length > 1 ? '<span class="accent">Multiple Widgets</span>' : '<span>Widget</span>' }
|
||||
</div>
|
||||
`))
|
||||
|
||||
|
|
@ -316,7 +312,7 @@ var Editor = class Editor {
|
|||
if (propName.indexOf('_') === 0 && propName !== '_props') {
|
||||
|
||||
if (category) this.form.appendChild(category)
|
||||
category = DOM.create(`<div class="category ${this.foldedCategories.indexOf(props[propName]) > -1 ? "folded" : ""}"></div>`)
|
||||
category = DOM.create(`<div class="category ${this.foldedCategories.indexOf(props[propName]) > -1 ? 'folded' : ''}"></div>`)
|
||||
|
||||
field = DOM.create(`<div class="separator" data-name="${props[propName]}"><span>${props[propName]}</span></div>`)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ var targets = {},
|
|||
|
||||
function pointerDownHandler(event) {
|
||||
|
||||
if (event.capturedByEditor || event.touchPunch) return
|
||||
if (event.capturedByEditor || event.touchPunch) return
|
||||
|
||||
if (!event.multitouch) {
|
||||
for (var i in targets) {
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ class Widget extends EventEmitter {
|
|||
|
||||
if (!this.oscReceivers[address]) {
|
||||
this.oscReceivers[address] = new OscReceiver(resolvedAddress, value, this, propName)
|
||||
if (oscReceiverState[address]) {
|
||||
if (oscReceiverState[address]) {
|
||||
this.oscReceivers[address].value = oscReceiverState[address]
|
||||
delete oscReceiverState[address]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue