Skip to content

Commit

Permalink
Merge pull request #304 from kartikm/CED-JShint
Browse files Browse the repository at this point in the history
Some jshint fixes for CED
  • Loading branch information
amire80 committed Nov 21, 2013
2 parents 57421b1 + 20ec077 commit 497be4e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions examples/ced/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
$( document ).ready( function () {
var ime, inputmethods, languages, $imeSelector, $langselector;
'use strict';

var ime, inputmethods, imeselector, languages, $imeSelector, $langselector;

$( '#ced' ).ime({ imePath: '../../' });

Expand Down Expand Up @@ -28,14 +30,14 @@ $( document ).ready( function () {
$imeSelector.empty();
$.each( inputmethods, function ( index, inputmethodId ) {
var inputmethod = $.ime.sources[inputmethodId];
$imeSelector.append( $( "<option></option>" )
.attr( "value", inputmethodId ).text( inputmethod.name ) );
$imeSelector.append( $( '<option></option>' )
.attr( 'value', inputmethodId ).text( inputmethod.name ) );
} );
$imeSelector.trigger( 'change' );
}

$.each( languages, function ( lang, language ) {
$langselector.append( $( "<option></option>" )
$langselector.append( $( '<option></option>' )
.attr( 'value', lang )
.text( language.autonym ) );
} );
Expand All @@ -49,4 +51,4 @@ $( document ).ready( function () {
imeselector.selectLanguage( language );
listinputmethods( language );
} );
} )
} );

0 comments on commit 497be4e

Please sign in to comment.