Skip to content

Commit f7c8363

Browse files
LaurentBarbareaudmethvin
authored andcommitted
Core: commas replaced by semi-colons for consistent message format
Closes #222
1 parent 8c976a1 commit f7c8363

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/core.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ for ( findProp in oldFind ) {
6262

6363
// The number of elements contained in the matched element set
6464
jQuery.fn.size = function() {
65-
migrateWarn( "jQuery.fn.size() is deprecated and removed, use the .length property" );
65+
migrateWarn( "jQuery.fn.size() is deprecated and removed; use the .length property" );
6666
return this.length;
6767
};
6868

@@ -90,10 +90,10 @@ jQuery.isNumeric = function( val ) {
9090
};
9191

9292
migrateWarnFunc( jQuery, "unique", jQuery.uniqueSort,
93-
"jQuery.unique is deprecated, use jQuery.uniqueSort" );
93+
"jQuery.unique is deprecated; use jQuery.uniqueSort" );
9494

9595
// Now jQuery.expr.pseudos is the standard incantation
9696
migrateWarnProp( jQuery.expr, "filters", jQuery.expr.pseudos,
97-
"jQuery.expr.filters is deprecated, use jQuery.expr.pseudos" );
97+
"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos" );
9898
migrateWarnProp( jQuery.expr, ":", jQuery.expr.pseudos,
99-
"jQuery.expr[':'] is deprecated, use jQuery.expr.pseudos" );
99+
"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos" );

warnings.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ This is _not_ a warning, but a console log message the plugin shows when it firs
7979

8080
**Solution**: Replace any use of `.andSelf()` with `.addBack()`.
8181

82-
### JQMIGRATE: jQuery.fn.size() is deprecated and removed, use the .length property
82+
### JQMIGRATE: jQuery.fn.size() is deprecated and removed; use the .length property
8383

8484
**Cause**: The `.size()` method returns the number of elements in the current jQuery object, but duplicates the more-efficient `.length` property which provides the same functionality. As of jQuery 1.9 the `.length` property is the preferred way to retrieve this value. jQuery 3.0 no longer contains the `.size()` method.
8585

@@ -173,8 +173,8 @@ See jQuery-ui [commit](https://github.com/jquery/jquery-ui/commit/c0093b599fcd58
173173

174174
**Solution**: Replace all uses of `jQuery.unique` with `jQuery.uniqueSort` which is the same function with a better name.
175175

176-
### JQMIGRATE: jQuery.expr[':'] is deprecated, use jQuery.expr.pseudos
177-
### JQMIGRATE: jQuery.expr.filters is deprecated, use jQuery.expr.pseudos
176+
### JQMIGRATE: jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos
177+
### JQMIGRATE: jQuery.expr.filters is deprecated; use jQuery.expr.pseudos
178178

179179
**Cause:** The standard way to add new custom selectors through jQuery is `jQuery.expr.pseudos`. These two other aliases are deprecated, although they still work as of jQuery 3.0.
180180

0 commit comments

Comments
 (0)