Copyright © 2012 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
| Project: | HTML5 Video Player |
| Version: | api_v3-1.1.x |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
| Total votes: | 1 |
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().