Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos (found by codespell) #415

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.
### Changed
- jPlayer Repository Refactor: The skins source files are now in `src/skin` and the build skins files in the `dist/skin` folder.
- jPlayer Repository Refactor: All the circle player specific files are now in the `lib/circle-player` folder.
- jPlayer Repository Refactor: Changed the html `examples` file extentions from `htm` to `html` for @Laurian.
- jPlayer Repository Refactor: Changed the html `examples` file extensions from `htm` to `html` for @Laurian.


## 2.9.1 - 2014-12-09
Expand Down Expand Up @@ -43,7 +43,7 @@ All notable changes to this project will be documented in this file.
- New Feature: Merged Pull Request to add [commonJS support](https://github.com/happyworm/jPlayer/pull/257) by [nervo](https://github.com/nervo).
- Docs: Added CHANGELOG.md and gave details back to 2.7.1
- Docs: Added MIGRATION.md as placeholder for migration details.
- Bug Fix: Fixed Internet Explorer key bindings. Removed [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/document.activeElement) useage from the key bindings code.
- Bug Fix: Fixed Internet Explorer key bindings. Removed [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/document.activeElement) usage from the key bindings code.
- New Feature: The key bindings option `key` value may now be a number for [`event.which`](http://api.jquery.com/event.which/) and a string for [`event.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.key) comparison.
- Default Options: Added to the default key bindings:
- **l** loop toggle
Expand Down
4 changes: 2 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Migration
All notable changes that affect the backwards compatability of this project will be documented in this file.
All notable changes that affect the backwards compatibility of this project will be documented in this file.

## 2.9.2 - 2014-12-14
### Changed
- jPlayer Repository Refactor: The skins source files are now in `src/skin` and the build skins files in the `dist/skin` folder.
- jPlayer Repository Refactor: All the circle player specific files are now in the `lib/circle-player` folder.
- jPlayer Repository Refactor: Changed the html `examples` file extentions from `htm` to `html` for @Laurian.
- jPlayer Repository Refactor: Changed the html `examples` file extensions from `htm` to `html` for @Laurian.


## 2.8.2 - 2014-11-19
Expand Down
2 changes: 1 addition & 1 deletion examples/blue.monday/jPlayer-tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
// swfPath: "../../dist/jplayer/", // Check trailing slash
// swfPath: "../../dist/jplayer/broken", // Check broken swfPath errors.
// swfPath: "../../dist/jplayer/Jplayer.swf", // Check URLs work
// swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensative (Apache did not mind the extension's case not matching and worked too.)
// swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensitive (Apache did not mind the extension's case not matching and worked too.)
// swfPath: "/", // Checks various
// supplied: "flv",
supplied: "flv,m4v,webmv",
Expand Down
2 changes: 1 addition & 1 deletion examples/pink.flag/jPlayer-tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
// swfPath: "../../dist/jplayer/", // Check trailing slash
// swfPath: "../../dist/jplayer/broken", // Check broken swfPath errors.
// swfPath: "../../dist/jplayer/Jplayer.swf", // Check URLs work
// swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensative (Apache did not mind the extension's case not matching and worked too.)
// swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensitive (Apache did not mind the extension's case not matching and worked too.)
// swfPath: "/", // Checks various
// supplied: "flv",
supplied: "flv,m4v,webmv",
Expand Down
2 changes: 1 addition & 1 deletion lib/aurora/aac.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/aurora/flac.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/aurora/mp3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/circle-player/js/circle.player.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ CirclePlayer.prototype = {
// console.log("percent = " + percent);
} else { // Fallback if buffered not supported
// percent = event.jPlayer.status.seekPercent;
percent = 0; // Cleans up the inital conditions on all browsers, since seekPercent defaults to 100 when object is undefined.
percent = 0; // Cleans up the initial conditions on all browsers, since seekPercent defaults to 100 when object is undefined.
}
self._progress(percent); // Problem here at initial condition. Due to the Opera clause above of buffered.length > 0 above... Removing it means Opera's white buffer ring never shows like with polyfill.
// Firefox 4 does not always give the final progress event when buffered = 100%
Expand Down
4 changes: 2 additions & 2 deletions lib/circle-player/js/jquery.transform2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* limitations:
* - requires jQuery 1.4.3+
* - Should you use the *translate* property, then your elements need to be absolutely positionned in a relatively positionned wrapper **or it will fail in IE678**.
* - Should you use the *translate* property, then your elements need to be absolutely positioned in a relatively positioned wrapper **or it will fail in IE678**.
* - transformOrigin is not accessible
*
* latest version and complete README available on Github:
Expand Down Expand Up @@ -178,7 +178,7 @@ if ( supportProperty && supportProperty != _transform ) {
}

// translate
// We assume that the elements are absolute positionned inside a relative positionned wrapper
// We assume that the elements are absolute positioned inside a relative positioned wrapper
elemStyle.left = value[4] + "px";
elemStyle.top = value[5] + "px";

Expand Down
4 changes: 2 additions & 2 deletions lib/popcorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@
MouseEvents: "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave click dblclick",
Events: "loadstart progress suspend emptied stalled play pause error " +
"loadedmetadata loadeddata waiting playing canplay canplaythrough " +
"seeking seeked timeupdate ended ratechange durationchange volumechange"
"seeking sought timeupdate ended ratechange durationchange volumechange"
};

Popcorn.Events.Natives = Popcorn.Events.UIEvents + " " +
Expand Down Expand Up @@ -2277,7 +2277,7 @@
}

// clean any remaining references in the end index
// we do this seperate from the above check because they might not be in the same order
// we do this separate from the above check because they might not be in the same order
if ( byEnd[ idx ] && byEnd[ idx ]._natives && byEnd[ idx ]._natives.type === name ) {

byEnd.splice( idx, 1 );
Expand Down
4 changes: 2 additions & 2 deletions src/actionscript/Jplayer.as
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ package {
private var jQuery:String;
private var sentNumberFractionDigits:uint = 2;

public var commonStatus:JplayerStatus = new JplayerStatus(); // Used for inital ready event so volume is correct.
public var commonStatus:JplayerStatus = new JplayerStatus(); // Used for initial ready event so volume is correct.

private var myInitTimer:Timer = new Timer(100, 0);

Expand Down Expand Up @@ -159,7 +159,7 @@ package {
// Known Flash problem with contextMenu over video player.
// Add a transparent rectangle into the sprite.
contextMenuFix.graphics.beginFill(0x000000, 0); // Transparent black
contextMenuFix.graphics.drawRect(0, 0, 10, 10); // Arbitary rectangle
contextMenuFix.graphics.drawRect(0, 0, 10, 10); // Arbitrary rectangle
contextMenuFix.graphics.endFill();
addChild(contextMenuFix); // Put the sprite on the top layer.

Expand Down
2 changes: 1 addition & 1 deletion src/actionscript/happyworm/jPlayer/JplayerMp4.as
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ package happyworm.jPlayer {
if(myStatus.metaDataReady && myStatus.pausePosition > myStatus.duration) { // The time is invalid, ie., past the end.
myStatus.pausePosition = 0;
myStream.seek(0);
seekedEvent(); // Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceeding seeking event.
seekedEvent(); // Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceding seeking event.
} else if(!isNaN(time)) {
if(getSeekTimeRatio() > getLoadRatio()) { // Use an estimate based on the downloaded amount
seeking(true);
Expand Down
10 changes: 5 additions & 5 deletions src/actionscript/happyworm/jPlayer/JplayerRtmp.as
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ package happyworm.jPlayer
myStatus.isPlaying = true; // Should be handled elsewhere.
}

// Under RTMP, this event code occurs every time the media starts playing and when a new position is seeked to, even when paused.
// Under RTMP, this event code occurs every time the media starts playing and when a new position is sought to, even when paused.

// Since under RTMP the event behaviour is quite different, believe a refactor is best here.
// ie., Under RTMP we should be able to know a lot more info about the stream.

// See onMetaDataHandler() for other condition, since duration is vital.
// See onResult() response handler too.
// Appears to be some duplication between onMetaDataHandler() and onResult(), along with a race between them occuring.
// Appears to be some duplication between onMetaDataHandler() and onResult(), along with a race between them occurring.

break;
case "NetStream.Play.UnpublishNotify":
Expand Down Expand Up @@ -418,7 +418,7 @@ package happyworm.jPlayer
{
// videoSupport turns on/off video - by default no video, audio only
videoBinding=videoSupport;
/* Dont close the stream or netconnection here anymore so we can recycle if host/appname are the same
/* Don't close the stream or netconnection here anymore so we can recycle if host/appname are the same
if ((myStream != null))
{
myStream.close();
Expand Down Expand Up @@ -466,7 +466,7 @@ package happyworm.jPlayer
if (myStream != null)
{
myStream.close();
// Dont close the netConnection here any longer, as we may recycle it later
// Don't close the netConnection here any longer, as we may recycle it later
// may need an extra way to close manually if switching media types after an rtmp session - revisit
// myConnection.close();
myStatus.reset();
Expand Down Expand Up @@ -806,7 +806,7 @@ package happyworm.jPlayer

trace("GOT HERE!");
myStream.seek(0);
seekedEvent();// Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceeding seeking event.
seekedEvent();// Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceding seeking event.
}
else if (! isNaN(time))
{
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/add-on/jplayer.playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
$(this.cssSelector.details).hide();
}

// Remove the empty <li> from the page HTML. Allows page to be valid HTML, while not interfereing with display animations
// Remove the empty <li> from the page HTML. Allows page to be valid HTML, while not interfering with display animations
$(this.cssSelector.playlist + " ul").empty();

// Create .on() handlers for the playlist items along with the free media and remove controls.
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/add-on/jquery.jplayer.inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
config.eventTimeout[e.type] = setTimeout(function() {
config.eventJq[e.type].css("background-color","#fff");
}, 1000);
// The timer to handle the occurences.
// The timer to handle the occurrences.
setTimeout(function() {
config.eventOccurrence[e.type]--;
config.eventJq[e.type].text(eventName + " (" + config.eventOccurrence[e.type] + ")");
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/jplayer/jquery.jplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@
playbackRate: 1, // Warning - Now both an option and a status property
ended: 0

/* Persistant status properties created dynamically at _init():
/* Persistent status properties created dynamically at _init():
width
height
cssClass
Expand Down
6 changes: 3 additions & 3 deletions src/javascript/popcorn/popcorn.jplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* For Popcorn Version: 1.3
* For jPlayer Version: 2.9.0
* Requires: jQuery 1.7+
* Note: jQuery dependancy cannot be removed since jPlayer 2 is a jQuery plugin. Use of jQuery will be kept to a minimum.
* Note: jQuery dependency cannot be removed since jPlayer 2 is a jQuery plugin. Use of jQuery will be kept to a minimum.
*/

(function(Popcorn) {
Expand Down Expand Up @@ -249,7 +249,7 @@
mediaType = 'unknown',
jpMedia = {},
jpOptions = {},
ready = false, // Used during init to override the annoying duration dependance in the track event padding during Popcorn's isReady(). ie., We is ready after loadeddata and duration can then be set real value at leisure.
ready = false, // Used during init to override the annoying duration dependence in the track event padding during Popcorn's isReady(). ie., We is ready after loadeddata and duration can then be set real value at leisure.
duration = 0, // For the durationchange event with both HTML5 and Flash solutions. Used with 'ready' to keep control during the Popcorn isReady() via loadeddata event. (Duration=0 is bad.)
durationchangeId = null, // A timeout ID used with delayed durationchange event. (Because of the duration=NaN fudge to avoid Popcorn track event corruption.)
canplaythrough = false,
Expand Down Expand Up @@ -367,7 +367,7 @@
if(event.jPlayer.flash.used) {
jPlayerFlashEventsPatch();
}
// Set the media andd load it, so that the Flash solution behaves similar to HTML5 solution.
// Set the media and load it, so that the Flash solution behaves similar to HTML5 solution.
// This also allows the loadstart event to be used to know jPlayer is ready.
$(this).jPlayer('setMedia', jpMedia).jPlayer('load');
});
Expand Down