Fix swipe-back in iOS

This commit is contained in:
Hristo Hristov
2016-03-25 12:01:02 +02:00
parent e0f52b1031
commit 429646f392
12 changed files with 201 additions and 169 deletions

6
trace/trace.d.ts vendored
View File

@@ -41,6 +41,12 @@ declare module "trace" {
*/
export function addCategories(categories: string);
/**
* Check if category is already set in trace module.
* @param category The category to check.
*/
export function isCategorySet(category: string): boolean;
/**
* Writes a message using the available writers.
* @param message The message to be written.

View File

@@ -14,6 +14,10 @@ export function disable() {
_enabled = false;
}
export function isCategorySet(category: string): boolean {
return category in _categories;
}
export function addWriter(writer: definition.TraceWriter) {
_writers.push(writer);
}