mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(): add TODO about hardcoding things
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import * as Platform from './platform';
|
||||
import * as util from './util';
|
||||
|
||||
// TODO stop hardcoding platforms and media sizes
|
||||
|
||||
/*
|
||||
config
|
||||
.set({ side: 'left' })
|
||||
@@ -83,6 +85,7 @@ class ConfigCase {
|
||||
}
|
||||
unset(key) {
|
||||
delete this._values[key];
|
||||
return this;
|
||||
}
|
||||
get(key) {
|
||||
return util.isDefined(this._values[key]) ?
|
||||
|
||||
@@ -75,7 +75,7 @@ export function main() {
|
||||
var sub1 = rootConfig.platform('ios');
|
||||
sub1.set({ letter: 'b' });
|
||||
expect(sub1.get('letter')).toBe('b');
|
||||
sub1.unset('letter');
|
||||
expect( sub1.unset('letter') ).toBe(sub1);
|
||||
expect(sub1.get('letter')).toBe('a');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user