Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 4287dba

Browse files
committed
Export extern.focus (closes #22)
1 parent db87f92 commit 4287dba

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

jquery.console.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@
177177
});
178178
};
179179

180-
var focusConsole = function() {
181-
inner.addClass('jquery-console-focus');
182-
typer.focus();
183-
};
184-
185180
if (fadeOnReset) {
186181
inner.parent().fadeOut(function() {
187182
removeElements();
@@ -196,6 +191,15 @@
196191
}
197192
};
198193

194+
var focusConsole = function() {
195+
inner.addClass('jquery-console-focus');
196+
typer.focus();
197+
};
198+
199+
extern.focus = function(){
200+
focusConsole();
201+
}
202+
199203
////////////////////////////////////////////////////////////////////////
200204
// Reset terminal
201205
extern.notice = function(msg,style){

0 commit comments

Comments
 (0)