File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 921921
922922 if ( opts . element . get ( 0 ) . tagName . toLowerCase ( ) === "select" ) {
923923 // install sthe selection initializer
924- this . opts . initSelection = function ( element ) {
924+ opts . initSelection = function ( element ) {
925925 var selected = element . find ( ":selected" ) ;
926926 // a single select box always has a value, no need to null check 'selected'
927927 return { id : selected . attr ( "value" ) , text : selected . text ( ) } ;
10611061
10621062 // TODO validate placeholder is a string if specified
10631063
1064+
10641065 if ( opts . element . get ( 0 ) . tagName . toLowerCase ( ) === "select" ) {
10651066 // install sthe selection initializer
1066- this . opts . initSelection = function ( element ) {
1067+ opts . initSelection = function ( element ) {
10671068 var data = [ ] ;
10681069 element . find ( ":selected" ) . each ( function ( ) {
10691070 data . push ( { id : $ ( this ) . attr ( "value" ) , text : $ ( this ) . text ( ) } ) ;
You can’t perform that action at this time.
0 commit comments