This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In NetBeans Dev 201308072300 formatting for anonymous functions was changed (accidentally?) Previous default: var callback = function (event) { function namedFunc(param1) { Current default: var callback = function(event) { function namedFunc(param1) { Current when i changed the formatting options: var callback = function (event) { function namedFunc (param1) { I like to be able to recreate the previous default behavior. Perhaps a additional formatting setting for anonymous function declarations?
Formatting is incompatible with JSLint. Expected exactly one space between 'function' and '('. or Unexpected space between '$methodname' and '('. When `Editor>Formatting>Javascript>Spaces>Before Parentheses>Function Declaration` is checked
Fixed in web-main c8e344de7f57. Introduced new option for anonymous functions.
Integrated into 'main-silver', will be available in build *201407220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c8e344de7f57 User: Petr Hejl <phejl@netbeans.org> Log: #234174 - formating anonymous functions in javascript