Remove goog.isNull in dom class

This commit is contained in:
Marc Jansen
2015-09-29 15:22:41 +02:00
parent e65384a407
commit f360080fa7

View File

@@ -39,7 +39,7 @@ ol.dom.canUseCssTransform = (function() {
var canUseCssTransform;
return function() {
if (canUseCssTransform === undefined) {
goog.asserts.assert(!goog.isNull(document.body),
goog.asserts.assert(document.body,
'document.body should not be null');
if (!goog.global.getComputedStyle) {
// this browser is ancient
@@ -82,7 +82,7 @@ ol.dom.canUseCssTransform3D = (function() {
var canUseCssTransform3D;
return function() {
if (canUseCssTransform3D === undefined) {
goog.asserts.assert(!goog.isNull(document.body),
goog.asserts.assert(document.body,
'document.body should not be null');
if (!goog.global.getComputedStyle) {
// this browser is ancient