Skip to content

Commit 5c263f6

Browse files
committed
fix typo
1 parent 86e440a commit 5c263f6

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

core/src/components/alert/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ const AlertExample: React.FC = () => {
607607
message: 'alert from hook',
608608
buttons: [
609609
'Cancel',
610-
{ text: 'Ok', handler: (d) => console.log('ok presses') },
610+
{ text: 'Ok', handler: (d) => console.log('ok pressed') },
611611
],
612612
onDidDismiss: (e) => console.log('did dismiss'),
613613
})

core/src/components/alert/usage/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const AlertExample: React.FC = () => {
1818
message: 'alert from hook',
1919
buttons: [
2020
'Cancel',
21-
{ text: 'Ok', handler: (d) => console.log('ok presses') },
21+
{ text: 'Ok', handler: (d) => console.log('ok pressed') },
2222
],
2323
onDidDismiss: (e) => console.log('did dismiss'),
2424
})

core/src/components/slides/swiper/swiper.bundle.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function transform(transform) {
320320
}
321321
return this;
322322
}
323-
function transition(duration) {
323+
function transition$1(duration) {
324324
if (typeof duration !== 'string') {
325325
duration = `${duration}ms`; // eslint-disable-line
326326
}
@@ -459,7 +459,7 @@ function trigger(...args) {
459459
}
460460
return this;
461461
}
462-
function transitionEnd(callback) {
462+
function transitionEnd$1(callback) {
463463
const events = ['webkitTransitionEnd', 'transitionend'];
464464
const dom = this;
465465
let i;
@@ -850,11 +850,11 @@ const Methods = {
850850
removeAttr,
851851
data,
852852
transform,
853-
transition: transition,
853+
transition: transition$1,
854854
on,
855855
off,
856856
trigger,
857-
transitionEnd: transitionEnd,
857+
transitionEnd: transitionEnd$1,
858858
outerWidth,
859859
outerHeight,
860860
offset,
@@ -2029,7 +2029,7 @@ function transitionStart (runCallbacks = true, direction) {
20292029
}
20302030
}
20312031

2032-
function transitionEnd$1 (runCallbacks = true, direction) {
2032+
function transitionEnd (runCallbacks = true, direction) {
20332033
const swiper = this;
20342034
const { activeIndex, previousIndex, params } = swiper;
20352035
swiper.animating = false;
@@ -2059,10 +2059,10 @@ function transitionEnd$1 (runCallbacks = true, direction) {
20592059
}
20602060
}
20612061

2062-
var transition$1 = {
2062+
var transition = {
20632063
setTransition,
20642064
transitionStart,
2065-
transitionEnd: transitionEnd$1,
2065+
transitionEnd,
20662066
};
20672067

20682068
function slideTo (index = 0, speed = this.params.speed, runCallbacks = true, internal) {
@@ -2233,9 +2233,9 @@ function slidePrev (speed = this.params.speed, runCallbacks = true, internal) {
22332233
}
22342234
const normalizedTranslate = normalize(translate);
22352235
const normalizedSnapGrid = snapGrid.map((val) => normalize(val));
2236-
const normalizedSlidesGrid = slidesGrid.map((val) => normalize(val));
2236+
slidesGrid.map((val) => normalize(val));
22372237

2238-
const currentSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)];
2238+
snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)];
22392239
let prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];
22402240
if (typeof prevSnap === 'undefined' && params.cssMode) {
22412241
snapGrid.forEach((snap) => {
@@ -3866,7 +3866,7 @@ var defaults = {
38663866
const prototypes = {
38673867
update,
38683868
translate,
3869-
transition: transition$1,
3869+
transition,
38703870
slide,
38713871
loop,
38723872
grabCursor,

0 commit comments

Comments
 (0)