Skip to content

Commit 31670e3

Browse files
authored
Fix typos in JS files (#76)
* Correct typo * Fix JS spelling errors * fix correction error
1 parent 708e591 commit 31670e3

22 files changed

+48
-48
lines changed

assets/inc/color-picker-alpha/wp-color-picker-alpha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
* @since ACF 3.0.0
7777
* @access private
7878
*
79-
* @param {Object|*} The color instance if not defined return the cuurent color.
79+
* @param {Object|*} The color instance if not defined return the current color.
8080
*
8181
* @return {string} The element's color.
8282
*/

assets/inc/select2/3/select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ the specific language governing permissions and limitations under the Apache Lic
13221322
data: data,
13231323
success: function ( data ) {
13241324
// TODO - replace query.page with query so users have access to term, page, etc.
1325-
// added query as third paramter to keep backwards compatibility
1325+
// added query as third parameter to keep backwards compatibility
13261326
var results = options.results(
13271327
data,
13281328
query.page,

assets/inc/select2/4/select2.full.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5230,7 +5230,7 @@
52305230
'data'
52315231
);
52325232

5233-
// Don't re-select already selected resulte
5233+
// Don't re-select already selected result
52345234
if (
52355235
( data.element != null && data.element.selected ) ||
52365236
( data.element == null && data.selected )
@@ -7546,7 +7546,7 @@
75467546
deltaY = 0;
75477547
}
75487548

7549-
// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
7549+
// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatibility
75507550
delta = deltaY === 0 ? deltaX : deltaY;
75517551

75527552
// New school wheel delta (wheel event)
@@ -7658,7 +7658,7 @@
76587658
}
76597659

76607660
function shouldAdjustOldDeltas( orgEvent, absDelta ) {
7661-
// If this is an older event and the delta is divisable by 120,
7661+
// If this is an older event and the delta is divisible by 120,
76627662
// then we are assuming that the browser is treating this as an
76637663
// older mouse wheel event and that we should divide the deltas
76647664
// by 40 to try and get a more usable deltaFactor.

assets/inc/select2/4/select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5238,7 +5238,7 @@
52385238
'data'
52395239
);
52405240

5241-
// Don't re-select already selected resulte
5241+
// Don't re-select already selected result
52425242
if (
52435243
( data.element != null && data.element.selected ) ||
52445244
( data.element == null && data.selected )

assets/inc/timepicker/jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,7 @@
25662566

25672567
/*
25682568
* override parseDate() because UI 1.8.14 throws an error about "Extra characters"
2569-
* An option in datapicker to ignore extra format characters would be nicer.
2569+
* An option in datepicker to ignore extra format characters would be nicer.
25702570
*/
25712571
$.datepicker._base_parseDate = $.datepicker.parseDate;
25722572
$.datepicker.parseDate = function ( format, value, settings ) {

assets/src/js/_acf-compatibility.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since ACF 5.6.9
99
*
1010
* @param object instance The object to modify.
11-
* @param object compatibilty Optional. The compatibilty layer.
11+
* @param object compatibilty Optional. The compatibility layer.
1212
* @return object compatibilty
1313
*/
1414

@@ -94,7 +94,7 @@
9494
k1 = k1 || '';
9595
k2 = k2 || '';
9696

97-
// compability
97+
// compatibility
9898
var compatKey = k2 ? k1 + '.' + k2 : k1;
9999
var compats = {
100100
'image.select': 'Select Image',
@@ -281,7 +281,7 @@
281281
/*
282282
* acf.model
283283
*
284-
* This model acts as a scafold for action.event driven modules
284+
* This model acts as a scaffold for action.event driven modules
285285
*
286286
* @type object
287287
* @date 8/09/2014

assets/src/js/_acf-condition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
var fieldType = field.get( 'type' );
9797
var operator = rule.operator;
9898

99-
// get avaibale conditions
99+
// get available conditions
100100
var conditionTypes = acf.getConditionTypes( {
101101
fieldType: fieldType,
102102
operator: operator,
@@ -211,7 +211,7 @@
211211
operator: '',
212212
} );
213213

214-
// clonse available types
214+
// clone available types
215215
var types = [];
216216

217217
// loop

assets/src/js/_acf-field-accordion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// bail early if is cell
2020
if ( this.$el.is( 'td' ) ) return;
2121

22-
// enpoint
22+
// endpoint
2323
if ( this.get( 'endpoint' ) ) {
2424
return this.remove();
2525
}
@@ -201,7 +201,7 @@
201201
},
202202

203203
onClick: function ( e, $el ) {
204-
// prevent Defailt
204+
// prevent Default
205205
e.preventDefault();
206206

207207
// open close

assets/src/js/_acf-field-google-map.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
* @since ACF 5.0.0
7979
*
8080
* @param object|string val The new value.
81-
* @param object map The Google Map isntance.
81+
* @param object map The Google Map instance.
8282
* @param object field The field instance.
8383
*/
8484
acf.doAction( 'google_map_change', val, this.map, this );
@@ -223,7 +223,7 @@
223223
* @date 12/02/2014
224224
* @since ACF 5.0.0
225225
*
226-
* @param object map The Google Map isntance.
226+
* @param object map The Google Map instance.
227227
* @param object marker The Google Map marker isntance.
228228
* @param object field The field instance.
229229
*/
@@ -560,12 +560,12 @@
560560
/**
561561
* withAPI
562562
*
563-
* Loads the Google Maps API library and troggers callback.
563+
* Loads the Google Maps API library and triggers callback.
564564
*
565565
* @date 28/3/19
566566
* @since ACF 5.7.14
567567
*
568-
* @param function callback The callback to excecute.
568+
* @param function callback The callback to execute.
569569
* @return void
570570
*/
571571

assets/src/js/_acf-field.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
// inherit $field data
4444
this.inherit( $field );
4545

46-
// inherit controll data
46+
// inherit control data
4747
this.inherit( this.$control() );
4848
},
4949

@@ -511,7 +511,7 @@
511511
// hasValue: true
512512
} );
513513

514-
// clonse available types
514+
// clone available types
515515
var types = [];
516516

517517
// loop

0 commit comments

Comments
 (0)