Skip to content

Commit

Permalink
Update jsrepl, adapted repl.coffee to changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
amasad committed Nov 26, 2011
1 parent beb7d96 commit 35c2911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jsrepl
Submodule jsrepl updated from da2584 to 29430e
4 changes: 2 additions & 2 deletions repl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $.extend REPLIT,
# Load a given language by name.
LoadLanguage: (lang_name, callback=$.noop) ->
@$this.trigger 'language_loading', [lang_name]
@current_lang = JSREPL::Languages::[lang_name]
@current_lang = @jsrepl.GetLangConfig lang_name.toLowerCase()
# Hold the name for saving and such.
@current_lang.system_name = lang_name

Expand Down Expand Up @@ -84,7 +84,7 @@ $.extend REPLIT,
@jqconsole.MoveToEnd();

# Load the language engine from jsREPL.
@jsrepl.LoadLanguage lang_name, =>
@jsrepl.LoadLanguage lang_name.toLowerCase(), =>
# Continue only when the ace mode retrieval is done.
$.when(ace_mode_ajax).then =>
@StartPrompt()
Expand Down

0 comments on commit 35c2911

Please sign in to comment.