07.05
javascript
saved
the_undefined
Note
the_undefined did not leave a note
the_undefined did not leave a note
- $(function() {
- $('img.relevant').imagesReady(function() {
- // Element positioning code goes here
- });
- });
- $.fn.imagesReady = function(callback, scope) {
- var $images = this
- .bind('load', function() {
- var image = this;
- $images = $images.filter(function(){return this !== image});
- if ($images.length == 0) {
- callback.call(scope || $images);
- }
- });
- return $images;
- }
Parsed in 0.008 seconds, using GeSHi 1.0.7.14