Remove goog.isNull in dom class
This commit is contained in:
@@ -39,7 +39,7 @@ ol.dom.canUseCssTransform = (function() {
|
|||||||
var canUseCssTransform;
|
var canUseCssTransform;
|
||||||
return function() {
|
return function() {
|
||||||
if (canUseCssTransform === undefined) {
|
if (canUseCssTransform === undefined) {
|
||||||
goog.asserts.assert(!goog.isNull(document.body),
|
goog.asserts.assert(document.body,
|
||||||
'document.body should not be null');
|
'document.body should not be null');
|
||||||
if (!goog.global.getComputedStyle) {
|
if (!goog.global.getComputedStyle) {
|
||||||
// this browser is ancient
|
// this browser is ancient
|
||||||
@@ -82,7 +82,7 @@ ol.dom.canUseCssTransform3D = (function() {
|
|||||||
var canUseCssTransform3D;
|
var canUseCssTransform3D;
|
||||||
return function() {
|
return function() {
|
||||||
if (canUseCssTransform3D === undefined) {
|
if (canUseCssTransform3D === undefined) {
|
||||||
goog.asserts.assert(!goog.isNull(document.body),
|
goog.asserts.assert(document.body,
|
||||||
'document.body should not be null');
|
'document.body should not be null');
|
||||||
if (!goog.global.getComputedStyle) {
|
if (!goog.global.getComputedStyle) {
|
||||||
// this browser is ancient
|
// this browser is ancient
|
||||||
|
|||||||
Reference in New Issue
Block a user