mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
config can be value or function
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {isString, isObject, isDefined, extend} from '../util/util';
|
||||
import {isString, isObject, isDefined, isFunction, extend} from '../util/util';
|
||||
|
||||
|
||||
export class IonicConfig {
|
||||
@ -67,6 +67,9 @@ export class IonicConfig {
|
||||
// or it was from the users platform configs
|
||||
// or it was from the default platform configs
|
||||
// in that order
|
||||
if (isFunction(s[arg0])) {
|
||||
return s[arg0]();
|
||||
}
|
||||
return s[arg0];
|
||||
|
||||
|
||||
|
@ -74,7 +74,7 @@ Platform.register({
|
||||
},
|
||||
isMatch(p) {
|
||||
// SLEDGEHAMMER OVERRIDE FOR NOW
|
||||
//return true;
|
||||
return true;
|
||||
|
||||
return p.isPlatform('ios', 'iphone|ipad|ipod');
|
||||
},
|
||||
|
@ -103,6 +103,7 @@ var tapEventListeners = {
|
||||
Platform.ready().then(config => {
|
||||
|
||||
if (config.setting('tapPolyfill')) {
|
||||
console.log('Tap.register, tapPolyfill')
|
||||
Tap.register(document);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user