Remove unnecessary browserService and mockDom

This commit is contained in:
Alex Dima
2016-05-06 11:38:20 +02:00
parent 954f86dc1d
commit d9990fd5b7
11 changed files with 19 additions and 1157 deletions
-20
View File
@@ -68,22 +68,6 @@ export const canUseTranslate3d = !isIE9 && !isFirefox;
export const enableEmptySelectionClipboard = isWebKit;
let _disablePushState = false;
/**
* Returns if the browser supports the history.pushState function or not.
*/
export function canPushState() {
return (!_disablePushState && globals.history && globals.history.pushState);
}
/**
* Helpful when we detect that pushing state does not work for some reason (e.g. FF prevents pushState for security reasons in some cases)
*/
export function disablePushState() {
_disablePushState = true;
}
/**
* Returns if the browser supports CSS 3 animations.
*/
@@ -116,10 +100,6 @@ export function hasCSSAnimationSupport() {
return this._hasCSSAnimationSupport;
}
export function isInWebWorker(): boolean {
return !globals.document && typeof ((<any>globals).importScripts) !== 'undefined';
}
export function supportsExecCommand(command: string): boolean {
return (
(isIE11orEarlier || Platform.isNative)