Loading ...
Sorry, an error occurred while loading the content.

Re: Function chaining and whitespace issue

Expand Messages
  • douglascrockford
    Or you can wrap the whole thing in parens: var someFunction = function () { use strict ; }; (someFunction() (someFunction) (someFunction) (someFunction)
    Message 1 of 5 , Feb 10, 2012
    • 0 Attachment
      Or you can wrap the whole thing in parens:

      var someFunction = function () { 'use strict'; };
      (someFunction()
      (someFunction)
      (someFunction)
      (someFunction)
      (someFunction)
      (someFunction));
    Your message has been successfully submitted and would be delivered to recipients shortly.