makeArray function in Sizzle (jQuery 1.3) -


On my only one site. This is a Joomla site, hence the Mootools page is also included (and it is very difficult to remove Mootools) The problem is that a selector (like: "a", ".myclass" , Is calling the original jQuery selector with not "html a", ""). MyClass td ") will return only the first element.

I have stepped through the code and it has been limited to this function in the signal engine:
(your See, line 2058)

  var makeArray = function (array, result) {array = Array.prototype.slice.call (array); if (results) {results. Push.apply (result, array); return result;} return array;};  

i jquery ("a") :

After logging in, show it again with comments to show it .
  var makeArray = function (array, result) // // "array" page has an array of all 58 links // "result" is an empty jQuery object array = Array.prototype.slice. If the call (array); // array is unchanged (the result) {// true result push.apply (result, array); // "result" is now an array in which the only element is the return element;} return array;} ;  

Can anyone explain this code to me? And also why is getting rid of one of my elements?

< Div class = "post-text" Itemprop = "text">

Awakening, I finally got it I was using an older version which was not compatible with jQuery 1.3+ - he defined his push method, which only pushed the first element into the array, and instead it Regular jQuery method was being called.

Then warn everyone who experiences strange stuff after upgrading: Check the compatibility of your plugins !!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -