Hi, I wrote my own jquery plugin and was amazing that I haven't access to it inside $(document).ready function.
I write this testpage and was amazing more:
/**
* jQuery anchor plugin
*/
(function($) {
$.anchor = {
hashTrim: /^.*#/,
}
})(jQuery);
console.log($.ajax);
console.log($.anchor);
$(function() {
console.log($.ajax);
console.log($.anchor);
});
I'v got 4 complettely different values in firebug console. Do somebody know and can describe me wy it is? And main question - how I can have access to my $.anchor variable inside $(function() {} ???
Thу testcase is here http://movister.ru:5190/html/test.html
Thanks!
UPDATE:
I just catch the problem - django-debug-toolbar. When I disabled it, everythings becomes ok!
Does anyone know how to make friendship between jquery and django-debug-toolbar?