Skip to content

Commit

Permalink
$ => jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed May 31, 2011
1 parent 303c58c commit 5d19e9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/answer-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ KhanUtil.answerTypes || (KhanUtil.answerTypes = {});

jQuery.extend( KhanUtil.answerTypes, {
text: function( solutionarea, solution, verifier ) {
var input = $('<input type="text">');
var input = jQuery('<input type="text">');
jQuery( solutionarea ).append( input );
input.focus();

Expand Down Expand Up @@ -68,7 +68,7 @@ jQuery.extend( KhanUtil.answerTypes, {
},

radio: function( solutionarea, solution ) {
var list = $("<ul></ul>");
var list = jQuery("<ul></ul>");
jQuery( solutionarea ).append(list);

var choices = jQuery( solution ).siblings( ".choices" );
Expand All @@ -90,7 +90,7 @@ jQuery.extend( KhanUtil.answerTypes, {

// add the correct answer
if( !noneIsCorrect ) {
$( solution ).data( "correct", true );
jQuery( solution ).data( "correct", true );
// splice(0, 0) should be the same as unshift()
shuffled.splice( 0, 0, solution );
}
Expand All @@ -115,7 +115,7 @@ jQuery.extend( KhanUtil.answerTypes, {
shownChoices = KhanUtil.shuffle(shownChoices);

if( showNone ) {
var none = $( "<span>None of the above.</span>" );
var none = jQuery( "<span>None of the above.</span>" );

if( noneIsCorrect ) {
none.data( "correct", true );
Expand Down

0 comments on commit 5d19e9e

Please sign in to comment.