I read an article regarding the various ways to namespace in JavaScript. I quite liked the look of the last one but JSLint thinks otherwise. I know JSLint can be overzealous but is there a way to make this technique play nice with it?
var Something = {};
(function () {
"use strict";
this.helloWorld = function () {
var greeting = "Hello World!";
};
}.apply(Something));
Try this instead: