|
|
@ -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 |
|
|
|