It's all about the answers!

Ask a question

Script-based Calculated Value sample code


Andrew Stevens (1482629) | asked Jan 23 '12, 6:43 a.m.
Hi,

In https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Script_based_calculated_values the sample code is structured
dojo.provide("myclass");

(function() {
// class declaration
})();

but JSLint wants me to change this to
dojo.provide("myclass");

(function() {
// class declaration
}());

i.e. reorder those final brackets ("Move the invocation into the parens that contain the function.")
Which is correct?


Andy.

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.