Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit aeade79

Browse files
Rename new config options
1 parent 3ecbba6 commit aeade79

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app/modules/ionic-swing/interfaces/swing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export interface StackConfig {
7979
maxRotation?: number;
8080
allowedDirections?: Array<any>;
8181

82-
sortChild?: boolean;
83-
prependChild?: boolean;
82+
sortCards?: boolean;
83+
prependCards?: boolean;
8484

8585
/**
8686
* Determines if element is being thrown out of the stack.

src/app/modules/ionic-swing/swing/card.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ const makeConfig = (config = {}) => {
174174
throwOutConfidence: throwOutConfidence,
175175
throwOutDistance: throwOutDistance,
176176
transform: transform,
177-
sortChild: false,
178-
prependChild: false
177+
sortCards: false,
178+
prependCards: false
179179
};
180180

181181
return _.assign({}, defaultConfig, config);
@@ -247,16 +247,16 @@ const Card = (stack, targetElement) => {
247247
]
248248
});
249249

250-
if (config.sortChild) {
251-
if (config.prependChild) {
250+
if (config.sortCards) {
251+
if (config.prependCards) {
252252
prependToParent(targetElement);
253253
} else {
254254
appendToParent(targetElement);
255255
}
256256
}
257257

258258
eventEmitter.on('panstart', () => {
259-
if (config.sortChild) {
259+
if (config.sortCards) {
260260
appendToParent(targetElement);
261261
}
262262

0 commit comments

Comments
 (0)