title: jQuery page fading and strict mode
body: <p>I want use a fadeout effect on links. If i use the normal mode everythings working good.</p>
  
  <pre><code>$(document).ready(function() {
     $("a.transition").click(function (e) {
     event.preventDefault();
     newLocation = this.href;
     $("body").fadeOut(1000, function () {
        window.location = newLocation;
    });
    });
  });
  </code></pre>
  
  <p>But I must use strict mode</p>
  
  <pre><code>(function($){
  "use strict";
   .....
   .....
  $(document).ready(function() {
     $("a.transition").click(function (e) {
     event.preventDefault();
     newLocation = this.href;
     $("body").fadeOut(1000, function () {
        window.location = newLocation;
    });
    });
  
    .....
    init other functions
    ....
  });
  })(jQuery);
  </code></pre>
  
  <p>And it's not working strict mode. How can I fix this?</p>