Replace goog.object.isEmpty() with ol.object.isEmpty()

This commit is contained in:
Tim Schaub
2016-02-03 21:17:32 -07:00
parent 0dce343d4f
commit 8aecb3270c
17 changed files with 71 additions and 47 deletions

View File

@@ -268,6 +268,17 @@ describe('ol.object.assign()', function() {
});
describe('ol.object.isEmpty()', function() {
it('checks if an object has any properties', function() {
expect(ol.object.isEmpty({})).to.be(true);
expect(ol.object.isEmpty(null)).to.be(true);
expect(ol.object.isEmpty({foo: 'bar'})).to.be(false);
expect(ol.object.isEmpty({foo: false})).to.be(false);
});
});
goog.require('ol.Object');
goog.require('ol.ObjectEventType');
goog.require('ol.events');