Commit 0515e302 authored by serapath's avatar serapath

remove default options from dropdown

parent 7d26b83e
...@@ -64,12 +64,9 @@ class Dropdown { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment