Skip to content

Commit

Permalink
Merge pull request #284 from IshanRatnapala/patch-for-enabled-false
Browse files Browse the repository at this point in the history
Patch for enabled:false not working on init
  • Loading branch information
jcubic committed Feb 7, 2017
2 parents 6894ea2 + 83961af commit 4e1f769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery.terminal-1.0.1.js
Expand Up @@ -3804,7 +3804,7 @@
// throw e; // it will be catched by terminal
} finally {
onPause = $.noop;
if (!was_paused) {
if (!was_paused && self.enabled()) {
// resume login if user didn't call pause in onInit
// if user pause in onInit wait with exec until it
// resume
Expand Down Expand Up @@ -5164,7 +5164,7 @@
} else {
init();
}
if (!was_paused) {
if (!was_paused && self.enabled()) {
self.resume();
}
});
Expand Down

0 comments on commit 4e1f769

Please sign in to comment.