fix(reorder): several reorder lists in the same view

This commit is contained in:
Manu Mtz.-Almeida
2016-09-30 19:39:53 +02:00
parent 9bbe485ed0
commit e75d9be822
7 changed files with 50 additions and 27 deletions

View File

@@ -233,12 +233,9 @@ export class Config {
// or it was from the users platform configs
// or it was from the default platform configs
// in that order
let rtnVal: any;
if (isFunction(this._c[key])) {
rtnVal = this._c[key](this.platform);
} else {
rtnVal = this._c[key];
let rtnVal: any = this._c[key];
if (isFunction(rtnVal)) {
rtnVal = rtnVal(this.platform);
}
return (rtnVal !== null ? rtnVal : fallbackValue);