Skip to content

Commit

Permalink
Fix misspelling
Browse files Browse the repository at this point in the history
“Slient” -> “Silent”
  • Loading branch information
eridleyj committed Jun 14, 2015
1 parent 266daf5 commit e392bd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/jquery.popline.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// var isTargetOrChild = $.contains($.popline.current.target.get(0), event.target) || $.popline.current.target.get(0) === event.target;
// var isBarOrChild = $.contains($.popline.current.bar.get(0), event.target) || $.popline.current.bar.get(0) === event.target;
// TODO disable check multiple popline check
if ($.popline.utils.selection().text().length > 0 && !$.popline.current.keepSlientWhenBlankSelected()) {
if ($.popline.utils.selection().text().length > 0 && !$.popline.current.keepSilentWhenBlankSelected()) {
var target= $.popline.current.target, bar = $.popline.current.bar;
if (bar.is(":hidden") || bar.is(":animated")) {
bar.stop(true, true);
Expand All @@ -47,7 +47,7 @@
},
keyup: function(event) {
var popline = $(this).data("popline"), bar = popline.bar;
if (!isIMEMode && $.popline.utils.selection().text().length > 0 && !popline.keepSlientWhenBlankSelected()) {
if (!isIMEMode && $.popline.utils.selection().text().length > 0 && !popline.keepSilentWhenBlankSelected()) {
var pos = Position().keyup(event);
$.popline.current.show(pos);
}else {
Expand Down Expand Up @@ -162,7 +162,7 @@
enable: null,
disable: null,
position: "fixed",
keepSlientWhenBlankSelected: true
keepSilentWhenBlankSelected: true
},

instances: [],
Expand Down Expand Up @@ -356,8 +356,8 @@
}
},

keepSlientWhenBlankSelected: function() {
if (this.settings.keepSlientWhenBlankSelected && $.trim($.popline.utils.selection().text()) === ""){
keepSilentWhenBlankSelected: function() {
if (this.settings.keepSilentWhenBlankSelected && $.trim($.popline.utils.selection().text()) === ""){
return true;
}else {
return false;
Expand Down

0 comments on commit e392bd5

Please sign in to comment.