/**
* MediaRssPlayer 
*/

// Wrap in mw to not pollute global namespace
( function( mw ) {

	mw.addResourcePaths( {
		//"iScroll" : "iScroll.js",
		"mw.Playlist" : "mw.Playlist.js",
		"mw.PlaylistHandlerMediaRss" : "mw.PlaylistHandlerMediaRss.js"
	});
	
	// Set the default config
	mw.setDefaultConfig( {
		// Playlist layout 'vertical' or 'horizontal' 
		'Playlist.layout' : 'vertical',
		
		// Player aspect ratio
		'Playlist.playerAspect' : '4:3',
		
		// Width of item thubmnails 
		'Playlist.itemThumbWidth' : '60',
		
		// Height of the mediaRss title
		'Playlist.titleHeight' : '20',
			
		// Default playlist type:
		'Playlist.defaultType' : 'application/rss+xml'
	} );
		
	// Module loader 
	mw.addModuleLoader( 'Playlist', function(){
		var resourceList = ["mw.Playlist", "mw.PlaylistHandlerMediaRss" ]
		// xxx should detect touch support rather than mobile safari check
		/*if( mw.isMobileSafari() ){			
			resourceList.push( "iScroll" );
		}*/
		return resourceList;
	});
		
	
} )( window.mw );

// Add the jQuery hook: 
( function( $ ) {
	$.fn.playlist = function( options ){
		var _this = this;		
		if ( !this.selector ) {
			mw.log( "Error: Calling mediaRssPlayer with empty selector " + this.selector);
			return ;
		}
		// Set the target to loading
		$j( this.selector ).loadingSpinner();
		
		// Set the target 
		options[ 'target' ] = _this.selector;
		
		// Load the mediaRss class ( if not already loaded ) 		
		mw.load ( ['EmbedPlayer',  'Playlist'], function(){	
			// load and display the media Rss
			var myPlaylist = new mw.Playlist( options );
			myPlaylist.drawUI();		
		}); 		
	}
} )( jQuery );


/**
* MediaRssPlayer 
*/

// Wrap in mw to not pollute global namespace
( function( mw ) {

	mw.addResourcePaths( {
		"mw.Playlist" : "mw.Playlist.js",
		"mw.PlaylistHandlerMediaRss" : "mw.PlaylistHandlerMediaRss.js"
	});
	
	// Set the default config
	mw.setDefaultConfig( {
		// Playlist layout 'vertical' or 'horizontal' 
		'Playlist.layout' : 'vertical',
		
		// Player aspect ratio
		'Playlist.playerAspect' : '4:3',
		
		// Width of item thubmnails 
		'Playlist.itemThumbWidth' : '60',
		
		// Height of the mediaRss title
		'Playlist.titleHeight' : '20',
			
		// Default playlist type:
		'Playlist.defaultType' : 'application/rss+xml'
	} );
		
	// Module loader 
	mw.addModuleLoader( 'Playlist', function(){
		var resourceList = ["mw.Playlist", "mw.PlaylistHandlerMediaRss" ]
		// xxx should detect touch support rather than mobile safari check
		/*if( mw.isMobileSafari() ){			
			resourceList.push( "iScroll" );
		}*/
		return resourceList;
	});
		
	
} )( window.mw );

// Add the jQuery hook: 
( function( $ ) {
	$.fn.playlist = function( options ){
		var _this = this;		
		if ( !this.selector ) {
			mw.log( "Error: Calling mediaRssPlayer with empty selector " + this.selector);
			return ;
		}
		// Set the target to loading
		$j( this.selector ).loadingSpinner();
		
		// Set the target 
		options[ 'target' ] = _this.selector;
		
		// Load the mediaRss class ( if not already loaded ) 		
		mw.load ( ['EmbedPlayer',  'Playlist'], function(){	
			// load and display the media Rss
			var myPlaylist = new mw.Playlist( options );
			myPlaylist.drawUI();		
		}); 		
	}
} )( jQuery );


fix to loader.js