I see many xenforo js files have below kind of format, I will take \js\xenforo\full\news_feed.js for example:
Qustions:
1. why put ! before function? what does
mean here?
2.
what does this line mean here?
Code:
!function($, window, document, _undefined)
{
...
XenForo.register('a.NewsFeedItemHider', 'XenForo.NewsFeedItemHider');
}
(jQuery, this, document);
Qustions:
1. why put ! before function? what does
Code:
_undefined
2.
Code:
XenForo.register('a.NewsFeedItemHider', 'XenForo.NewsFeedItemHider');