Permalink
Browse files

Tests:Docs: Fix various typos

* Changes "baar" to "bar" when used with "foo" in readme
  and comments of js files

* mousenter -> mouseenter

Thanks @garysye, @KimTaehee

Closes gh-2613
Closes gh-2601
  • Loading branch information...
garysye authored and markelog committed Sep 18, 2015
1 parent ee0854f commit 03eaadb131df925d1072afd2496ee3b41d2f1fc6
Showing with 7 additions and 7 deletions.
  1. +1 −1 README.md
  2. +1 −1 src/event.js
  3. +1 −1 test/data/jquery-1.9.1.js
  4. +2 −2 test/data/testinit.js
  5. +1 −1 test/unit/event.js
  6. +1 −1 test/unit/selector.js
View
@@ -302,7 +302,7 @@ t( testName, selector, [ "array", "of", "ids" ] );
Example:
```js
t("Check for something", "//[a]", ["foo", "baar"]);
t("Check for something", "//[a]", ["foo", "bar"]);
```
View
@@ -810,7 +810,7 @@ jQuery.each( {
related = event.relatedTarget,
handleObj = event.handleObj;
// For mousenter/leave call the handler if related is outside the target.
// For mouseenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
event.type = handleObj.origType;
@@ -3525,7 +3525,7 @@ jQuery.each( {
related = event.relatedTarget,
handleObj = event.handleObj;
// For mousenter/leave call the handler if related is outside the target.
// For mouseenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
event.type = handleObj.origType;
View
@@ -35,8 +35,8 @@ this.q = function() {
* @param {String} a - Assertion name
* @param {String} b - Sizzle selector
* @param {String} c - Array of ids to construct what is expected
* @example t("Check for something", "//[a]", ["foo", "baar"]);
* @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar'
* @example t("Check for something", "//[a]", ["foo", "bar"]);
* @result returns true if "//[a]" return two elements with the IDs 'foo' and 'bar'
*/
QUnit.assert.t = function( a, b, c ) {
var f = jQuery( b ).get(),
View
@@ -879,7 +879,7 @@ QUnit.test( "withinElement implemented with jQuery.contains()", function( assert
} ).trigger( "mouseenter" );
jQuery( "#jc-inner" ).trigger( "mousenter" );
jQuery( "#jc-inner" ).trigger( "mouseenter" );
jQuery( "#jc-outer" ).off( "mouseenter mouseleave" ).remove();
jQuery( "#jc-inner" ).remove();
View
@@ -293,7 +293,7 @@ testIframe(
/**
* Asserts that a select matches the given IDs
* @example t("Check for something", "//[a]", ["foo", "baar"]);
* @example t("Check for something", "//[a]", ["foo", "bar"]);
* @param {String} a - Assertion name
* @param {String} b - Sizzle selector
* @param {Array} c - Array of ids to construct what is expected

0 comments on commit 03eaadb

Please sign in to comment.