remove default options from dropdown

pull/1/head
serapath 7 years ago
parent 7d26b83ee9
commit 0515e3020d
  1. 5
      src/app/ui/dropdown.js

@ -64,12 +64,9 @@ class Dropdown {
var self = this
self.event = new EventManager()
self.data = {
_options: opts.options || ['script'],
_options: opts.options || [],
selected: opts.defaults || []
}
if (self.data._options.indexOf('script') !== -1) {
if (!opts.defaults) self.data.selected.push('script')
}
self._view = {}
self._api = opts.api
self._events = opts.events

Loading…
Cancel
Save