mirror of
https://github.com/Codeux-Software/Textual.git
synced 2026-06-16 13:24:32 +00:00
Fix many, many typos
Import external libraries with similar fixes as well
This commit is contained in:
@@ -103,20 +103,20 @@ InlineMediaPrototype.prototype.toggleOnClick = function(mediaId) /* PUBLIC */
|
||||
|
||||
InlineMediaPrototype.prototype.show = function(mediaId) /* PUBLIC */
|
||||
{
|
||||
this.changeVisiblity(mediaId, "show");
|
||||
this.changeVisibility(mediaId, "show");
|
||||
};
|
||||
|
||||
InlineMediaPrototype.prototype.hide = function(mediaId) /* PUBLIC */
|
||||
{
|
||||
this.changeVisiblity(mediaId, "hide");
|
||||
this.changeVisibility(mediaId, "hide");
|
||||
};
|
||||
|
||||
InlineMediaPrototype.prototype.toggle = function(mediaId) /* PUBLIC */
|
||||
{
|
||||
this.changeVisiblity(mediaId, "toggle");
|
||||
this.changeVisibility(mediaId, "toggle");
|
||||
};
|
||||
|
||||
InlineMediaPrototype.prototype.changeVisiblity = function(mediaId, display) /* PRIVATE */
|
||||
InlineMediaPrototype.prototype.changeVisibility = function(mediaId, display) /* PRIVATE */
|
||||
{
|
||||
var mediaElement = document.getInlineMediaById(mediaId);
|
||||
|
||||
@@ -140,7 +140,7 @@ InlineMediaPrototype.prototype.changeVisiblity = function(mediaId, display) /* P
|
||||
self contained function. This makes it easier to maintain. */
|
||||
|
||||
/* Remove media */
|
||||
var _changeVisiblityByRemoving = (function()
|
||||
var _changeVisibilityByRemoving = (function()
|
||||
{
|
||||
if (this.willRemoveMedia(mediaId, mediaElement) === false) {
|
||||
return;
|
||||
@@ -152,7 +152,7 @@ InlineMediaPrototype.prototype.changeVisiblity = function(mediaId, display) /* P
|
||||
}).bind(this);
|
||||
|
||||
/* Show media */
|
||||
var _changeVisiblityByDisplaying = (function()
|
||||
var _changeVisibilityByDisplaying = (function()
|
||||
{
|
||||
if (this.willShowMedia(mediaId, mediaElement) === false) {
|
||||
return;
|
||||
@@ -164,7 +164,7 @@ InlineMediaPrototype.prototype.changeVisiblity = function(mediaId, display) /* P
|
||||
}).bind(this);
|
||||
|
||||
/* Load media */
|
||||
var _changeVisiblityByLoading = (function()
|
||||
var _changeVisibilityByLoading = (function()
|
||||
{
|
||||
var anchor = document.getInlineMediaAnchorById(mediaId);
|
||||
|
||||
@@ -202,14 +202,14 @@ InlineMediaPrototype.prototype.changeVisiblity = function(mediaId, display) /* P
|
||||
the anchor which means the user can shift click that to load
|
||||
the media again if they so choose. */
|
||||
|
||||
_changeVisiblityByRemoving();
|
||||
_changeVisibilityByRemoving();
|
||||
}
|
||||
else if (mediaElement)
|
||||
{
|
||||
/* If the media already exists, then we have nothing
|
||||
to do here other than set the display property. */
|
||||
|
||||
_changeVisiblityByDisplaying();
|
||||
_changeVisibilityByDisplaying();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -217,7 +217,7 @@ InlineMediaPrototype.prototype.changeVisiblity = function(mediaId, display) /* P
|
||||
already exist in the DOM, which means we need to fire
|
||||
off a request to load it. */
|
||||
|
||||
_changeVisiblityByLoading();
|
||||
_changeVisibilityByLoading();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ are also removed from the relevant buffer. */
|
||||
_MessageBuffer._loadMessagesBatchSize = 200; /* PRIVATE */
|
||||
|
||||
/* _MessageBuffer._loadMessages() sets the following properties
|
||||
when it performs an action. These proeprties are not used for
|
||||
when it performs an action. These properties are not used for
|
||||
anything other than state tracking. If false, new messages are
|
||||
loaded, else the event is ignored. */
|
||||
/* The user can scroll downward while messages are still being
|
||||
@@ -662,7 +662,7 @@ _MessageBuffer.loadMessagesWithJump = function(lineNumber, callbackFunction) /*
|
||||
lineNumberContents,
|
||||
|
||||
_MessageBuffer._loadMessagesBatchSize, // load X above
|
||||
_MessageBuffer._loadMessagesBatchSize, // laod X below
|
||||
_MessageBuffer._loadMessagesBatchSize, // load X below
|
||||
|
||||
(function(renderedMessages) {
|
||||
requestPayload.renderedMessages = renderedMessages;
|
||||
|
||||
@@ -223,5 +223,5 @@ window.addEventListener("resize", _TextualScroller._documentResizedCallback, fal
|
||||
|
||||
document.addEventListener("visibilitychange", _TextualScroller._documentVisibilityChangedCallback, false);
|
||||
|
||||
/* Populate initial visiblity state and maybe create timer */
|
||||
/* Populate initial visibility state and maybe create timer */
|
||||
_TextualScroller._documentVisibilityChangedCallback();
|
||||
|
||||
@@ -75,7 +75,7 @@ _TextualScroller._documentScrolledCallback = function() /* PRIVATE */
|
||||
{
|
||||
var scrolledElement = _TextualScroller._scrolledElement;
|
||||
|
||||
/* Height of scrollabe area */
|
||||
/* Height of scrollable area */
|
||||
var scrollHeightPrevious = TextualScroller.scrollHeightCurrentValue;
|
||||
|
||||
var scrollHeightCurrent = scrolledElement.scrollHeight;
|
||||
@@ -90,7 +90,7 @@ _TextualScroller._documentScrolledCallback = function() /* PRIVATE */
|
||||
/* If nothing changed, we ignore the event.
|
||||
It is possible to receive a scroll event but nothing changes
|
||||
because we ignore elastic scrolling. User can reach bottom,
|
||||
elsastic scroll, then bounce back. We get notification for
|
||||
elastic scroll, then bounce back. We get notification for
|
||||
both times we reach bottom, but values do not change. */
|
||||
if (scrollHeightPrevious === scrollHeightCurrent &&
|
||||
scrollPositionPrevious === scrollPositionCurrent)
|
||||
|
||||
Reference in New Issue
Block a user