This repository was archived by the owner on Aug 24, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/app/modules/ionic-swing Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ export interface StackConfig {
79
79
maxRotation ?: number ;
80
80
allowedDirections ?: Array < any > ;
81
81
82
- sortChild ?: boolean ;
83
- prependChild ?: boolean ;
82
+ sortCards ?: boolean ;
83
+ prependCards ?: boolean ;
84
84
85
85
/**
86
86
* Determines if element is being thrown out of the stack.
Original file line number Diff line number Diff line change @@ -174,8 +174,8 @@ const makeConfig = (config = {}) => {
174
174
throwOutConfidence : throwOutConfidence ,
175
175
throwOutDistance : throwOutDistance ,
176
176
transform : transform ,
177
- sortChild : false ,
178
- prependChild : false
177
+ sortCards : false ,
178
+ prependCards : false
179
179
} ;
180
180
181
181
return _ . assign ( { } , defaultConfig , config ) ;
@@ -247,16 +247,16 @@ const Card = (stack, targetElement) => {
247
247
]
248
248
} ) ;
249
249
250
- if ( config . sortChild ) {
251
- if ( config . prependChild ) {
250
+ if ( config . sortCards ) {
251
+ if ( config . prependCards ) {
252
252
prependToParent ( targetElement ) ;
253
253
} else {
254
254
appendToParent ( targetElement ) ;
255
255
}
256
256
}
257
257
258
258
eventEmitter . on ( 'panstart' , ( ) => {
259
- if ( config . sortChild ) {
259
+ if ( config . sortCards ) {
260
260
appendToParent ( targetElement ) ;
261
261
}
262
262
You can’t perform that action at this time.
0 commit comments