Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,4 +1,7 @@
goog.provide('ol.obj');
/**
* @module ol/obj
*/
var _ol_obj_ = {};
/**
@@ -10,7 +13,7 @@ goog.provide('ol.obj');
* @param {...Object} var_sources The source object(s).
* @return {!Object} The modified target object.
*/
ol.obj.assign = (typeof Object.assign === 'function') ? Object.assign : function(target, var_sources) {
_ol_obj_.assign = (typeof Object.assign === 'function') ? Object.assign : function(target, var_sources) {
if (target === undefined || target === null) {
throw new TypeError('Cannot convert undefined or null to object');
}
@@ -34,7 +37,7 @@ ol.obj.assign = (typeof Object.assign === 'function') ? Object.assign : function
* Removes all properties from an object.
* @param {Object} object The object to clear.
*/
ol.obj.clear = function(object) {
_ol_obj_.clear = function(object) {
for (var property in object) {
delete object[property];
}
@@ -47,7 +50,7 @@ ol.obj.clear = function(object) {
* @return {!Array<V>} The property values.
* @template K,V
*/
ol.obj.getValues = function(object) {
_ol_obj_.getValues = function(object) {
var values = [];
for (var property in object) {
values.push(object[property]);
@@ -61,10 +64,11 @@ ol.obj.getValues = function(object) {
* @param {Object} object The object to check.
* @return {boolean} The object is empty.
*/
ol.obj.isEmpty = function(object) {
_ol_obj_.isEmpty = function(object) {
var property;
for (property in object) {
return false;
}
return !property;
};
export default _ol_obj_;