player and all of mw library and modules is not a proper jquery extension

My issue votes
0
votes
0/20 total votes used
Project:HTML5 Video Player
Version:api_v3-1.1.x
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Total votes:1
Description

When using jquery, it is possible to construct a complex series of elements, and then use jquery to iterate them. jQuery(selector1).find(selector2).find(selector3).each(function() {});

If I were to call embedPlayer() on the final find above, then embedPlayer will take selector3(it assigns it to playerSelect), and search the global document *again* for that selector. This is quite broken.

I have a complex site, that does incremental ajax page updates. A particular region may have a tag in it. I need to be able to apply the embedPlayer against *just* the small html, and *not* the entire document.

I've also discovered this type of bug all over the mediawiki library code. Anyplace that does *anything* with this.selector will break in incremental ajax page updating.

Instead of doing $j(selector).each(), just do this.each().