@@ -654,7 +654,7 @@ the specific language governing permissions and limitations under the Apache Lic
654654
655655 // abstract
656656 init : function ( opts ) {
657- var results , search , resultsSelector = ".select2-results" , disabled , readonly ;
657+ var results , search , resultsSelector = ".select2-results" ;
658658
659659 // prepare options
660660 this . opts = opts = this . prepareOpts ( opts ) ;
@@ -726,7 +726,7 @@ the specific language governing permissions and limitations under the Apache Lic
726726 // if jquery.mousewheel plugin is installed we can prevent out-of-bounds scrolling of results via mousewheel
727727 if ( $ . fn . mousewheel ) {
728728 results . mousewheel ( function ( e , delta , deltaX , deltaY ) {
729- var top = results . scrollTop ( ) , height ;
729+ var top = results . scrollTop ( ) ;
730730 if ( deltaY > 0 && top - deltaY <= 0 ) {
731731 results . scrollTop ( 0 ) ;
732732 killEvent ( e ) ;
@@ -852,7 +852,7 @@ the specific language governing permissions and limitations under the Apache Lic
852852
853853 opts = $ . extend ( { } , {
854854 populateResults : function ( container , results , query ) {
855- var populate , data , result , children , id = this . opts . id ;
855+ var populate , id = this . opts . id ;
856856
857857 populate = function ( results , container , depth ) {
858858
@@ -1009,8 +1009,6 @@ the specific language governing permissions and limitations under the Apache Lic
10091009
10101010 sync = this . bind ( function ( ) {
10111011
1012- var enabled , readonly , self = this ;
1013-
10141012 // sync enabled state
10151013 var disabled = el . prop ( "disabled" ) ;
10161014 if ( disabled === undefined ) disabled = false ;
@@ -1278,7 +1276,7 @@ the specific language governing permissions and limitations under the Apache Lic
12781276 scroll = "scroll." + cid ,
12791277 resize = "resize." + cid ,
12801278 orient = "orientationchange." + cid ,
1281- mask , maskCss ;
1279+ mask ;
12821280
12831281 this . container . addClass ( "select2-dropdown-open" ) . addClass ( "select2-container-active" ) ;
12841282
@@ -1501,7 +1499,6 @@ the specific language governing permissions and limitations under the Apache Lic
15011499 var results = this . results ,
15021500 more = results . find ( "li.select2-more-results" ) ,
15031501 below , // pixels the element is below the scroll fold, below==0 is when the element is starting to be visible
1504- offset = - 1 , // index of first element without data
15051502 page = this . resultsPage + 1 ,
15061503 self = this ,
15071504 term = this . search . val ( ) ,
@@ -3019,7 +3016,7 @@ the specific language governing permissions and limitations under the Apache Lic
30193016
30203017 // multi
30213018 val : function ( val , triggerChange ) {
3022- var oldData , self = this , changeDetails ;
3019+ var oldData , self = this ;
30233020
30243021 if ( arguments . length === 0 ) {
30253022 return this . getVal ( ) ;
0 commit comments