Sha256: 6e12ade41df42dddaae72cfec2969e6b02ade5bf4e084b448c43b785aa15e7b3
Contents?: true
Size: 771 Bytes
Versions: 1
Compression:
Stored size: 771 Bytes
Contents
/*global define*/ define([ '../Core/DeveloperError' ], function( DeveloperError) { "use strict"; /** * If element is a string, look up the element in the DOM by ID. Otherwise return element. * * @private * * @exception {DeveloperError} Element with id "id" does not exist in the document. */ var getElement = function(element) { if (typeof element === 'string') { var foundElement = document.getElementById(element); if (foundElement === null) { throw new DeveloperError('Element with id "' + element + '" does not exist in the document.'); } element = foundElement; } return element; }; return getElement; });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cesium-0.18.0 | app/assets/javascripts/Widgets/getElement.js |