Article View: pl.comp.lang.javascript
Article #50830prosba o wyjasnienie
From: smerf
Date: Wed, 20 Jul 2011 21:46
Date: Wed, 20 Jul 2011 21:46
26 lines
1524 bytes
1524 bytes
Czy ktos mi wyjasni linia po linii co to jest ?
1. (function ($, undefined) {
2. $.extend({
3. loadTemplates: function (templateUrl) {
4. $.get(templateUrl, function (templates) {
5. $(templates).filter("script")
6. .each(function () {
7. var templateName = $(this).attr("id");
8. $(this).template(templateName);
9. });
10. });
11. }
12. })
13. })(jQuery)
Chodzi przede wszystkim o to co jest najbardziej na zewnatrz bo takiej
skladni nie widzialem
(function ($, undefined) {
..
})(jQuery)
I po co to undefined ?
Technical Details
Message-ID:
<4e274cfe$0$2446$65785112@news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail Date: Wed, 20 Jul 2011 23:46:50 +0200 From: smerf <bez-konta@net.pl> User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 Newsgroups: pl.comp.lang.javascript Subject: prosba o wyjasnienie Lines: 26 Message-ID: <4e274cfe$0$2446$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 83.21.254.170 X-Trace: 1311198462 unt-rea-a-01.news.neostrada.pl 2446 83.21.254.170:4079 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit