adamsilver/jessie — comment on commit 700196c9acd28dfc91989a87481f3d2b51d5ffd5
File:  line 0
By cinsoft:

Don't need to declare the an API container object in these. We need another folder for library headers/footers, which will be concatenated with the needed functions on build.

+ var Jessie = Jessie || {};

(function() {

...

Jessie.getElement = getElement;

})();

BTW, these global objects aren't constructors, so either all caps or all lowercase.

Need to add isHostMethod rendition before this one. Boolean type conversion of host objects not allowed. I didn't always mention that in the previews.

+if (document.getElementById) {

Let's change this to "getElement". Later we'll add a "getElementInDocument" (or some such) for apps that need to work with multiple documents, as alternate renditions of this one must have the same signature.

+ Jessie.getElementById = function(id) {

+ return document.getElementById(id);

+ };

+}