Advertisement
Guest User

Untitled

a guest
May 17th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.fn.extend({
  2.  
  3.     UplayList: function (options) {
  4.         this.each(function  () {
  5.  
  6.             if ($(this).data('uplaylistId')) {
  7.                 var instance = $.playList.instances[$(this).data('uplaylistId')];
  8.                 instance[options].apply( instance, Array.prototype.slice.call( arguments, 1 ));
  9.             } else {
  10.                 var instance = new $.playList(this, options);
  11.                 var id = instance.elements.player.attr('id');
  12.                 $(this).data('uplaylistId',id);
  13.             }
  14.  
  15.         });
  16.     }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement