mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
namespaces removed (except Application)
This commit is contained in:
@ -1,26 +1,22 @@
|
||||
|
||||
export module tk {
|
||||
export class ConsoleHelper {
|
||||
// FIXME: we should use Foundation.NSLog() but it currently does not work
|
||||
static log(message: string): void {
|
||||
log('log: ' + message);
|
||||
}
|
||||
|
||||
static info(message: string): void {
|
||||
log('info: ' + message);
|
||||
}
|
||||
|
||||
static error(message: string): void {
|
||||
log('error: ' + message);
|
||||
}
|
||||
|
||||
static warn(message: string): void {
|
||||
log('warning: ' + message);
|
||||
}
|
||||
|
||||
static timeMillis(): number {
|
||||
return QuartzCore.CACurrentMediaTime() * 1000;
|
||||
}
|
||||
export class ConsoleHelper {
|
||||
// FIXME: we should use Foundation.NSLog() but it currently does not work
|
||||
static log(message: string): void {
|
||||
log('log: ' + message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static info(message: string): void {
|
||||
log('info: ' + message);
|
||||
}
|
||||
|
||||
static error(message: string): void {
|
||||
log('error: ' + message);
|
||||
}
|
||||
|
||||
static warn(message: string): void {
|
||||
log('warning: ' + message);
|
||||
}
|
||||
|
||||
static timeMillis(): number {
|
||||
return QuartzCore.CACurrentMediaTime() * 1000;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user