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

2828jslint alternative to (function(){...}).call({})

Expand Messages
  • marcos.zanona
    Mar 26 10:33 AM
    • 0 Attachment
      I would like to use the following statement so `this` is not DOMWindow anymore, although JSLint doesn't expect so see a `.`[dot] after (function(){...})
      (function () {
      //`this` is now {} and now DOMWindow
      Is this a bad a approach, (why) ?
      Also is there any good alternative to declare this?

      Thanks a lot
    • Show all 2 messages in this topic