gvas / knockout-jqueryui

Knockout bindings for the jQuery UI widgets.
http://gvas.github.com/knockout-jqueryui/
MIT License
103 stars 38 forks source link

Selectmenu does either not populate or throw a warning of duplicate bindings #53

Closed Jondeen closed 9 years ago

Jondeen commented 9 years ago

Upon binding a select-tag <select data-bind="value: colorspace, options: colorspace_choices, selectmenu: {width: 100}"></select> to this.colorspaces_choices = ko.observableArray(['hex', 'hsv', 'lab', 'rgb', 'xyz']); this.colorspace = ko.observable(); yields: Uncaught Error: Unable to process binding "options: function (){return thresholder.colorspace_choices }" Message: Multiple bindings (selectmenu and options) are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.. However - it does start to initialize the selectmenu (i.e. formats its size, style etc).

Dropping the selectmenu-clause causes the menu to remain uninitialized.

Knockout is v3.1.0 Knockout jQueryUI was pulled from GitHub yesterday.

Jondeen commented 9 years ago

My bad - requestjs wasn't properly set up.