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 var self = this
self.event = new EventManager() self.event = new EventManager()
self.data = { self.data = {
_options: opts.options || ['script'], _options: opts.options || [],
selected: opts.defaults || [] selected: opts.defaults || []
} }
if (self.data._options.indexOf('script') !== -1) {
if (!opts.defaults) self.data.selected.push('script')
}
self._view = {} self._view = {}
self._api = opts.api self._api = opts.api
self._events = opts.events self._events = opts.events

Loading…
Cancel
Save