提交 3b9016bf 编写于 作者: M Mr.doob

Editor: Fixed UI.Listbox bugs.

上级 b3711afa
......@@ -1159,7 +1159,7 @@ UI.Listbox = function ( ) {
};
UI.Listbox.prototype = Object.create( UI.Element.prototype );
UI.Listbox.prototype.constructor = UI.ListboxItem;
UI.Listbox.prototype.constructor = UI.Listbox;
UI.Listbox.prototype.setItems = function ( items ) {
......@@ -1169,7 +1169,7 @@ UI.Listbox.prototype.setItems = function ( items ) {
}
this.render( );
this.render();
};
......@@ -1217,11 +1217,11 @@ UI.Listbox.prototype.selectIndex = function ( index ) {
}
this.selectIndex = index;
this.selectedIndex = index;
};
UI.Listbox.prototype.getValue = function ( index ) {
UI.Listbox.prototype.getValue = function () {
return this.selectedValue;
......@@ -1233,7 +1233,7 @@ UI.Listbox.prototype.setValue = function ( value ) {
var element = this.listitems[ i ];
if ( element.getId( ) === value ) {
if ( element.getId() === value ) {
element.addClass( 'active' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册