Commit 4667b37db54ac2c1393189a8ba5ac66fff56c60a
- Diff rendering mode:
- inline
- side by side
js/ui/panes/options.js
(4 / 2)
  | |||
291 | 291 | var type; | |
292 | 292 | if(stype == "boolean") { | |
293 | 293 | type = qwebirc.config.CheckOption; | |
294 | } else { | ||
294 | } else if(stype == "function") { | ||
295 | 295 | var options = default_(); | |
296 | 296 | type = options.class_; | |
297 | defualt_ = options.default_; | ||
297 | default_ = options.default_; | ||
298 | } else { | ||
299 | type = qwebirc.config.TextOption; | ||
298 | 300 | } | |
299 | 301 | return new type(optionId, prefix, label, default_, moreextras); | |
300 | 302 | } |