define( [ 'models/promotionModel' ], function( PromotionModel ) {
    var view = Marionette.View.extend( {

      model: null,

      template: '#tmpl-nf-promotion',

      className: 'nf-promotion',

      /*
       * Display a single promotion - chosen at random.
       */
      initialize: function() {
        // If we don't have any promotions don't run this function. 
        if( 'undefined' !== typeof( nfPromotions ) ) {
          var promotion = nfPromotions[Math.floor(Math.random()*nfPromotions.length)];
          this.model = new PromotionModel( promotion );
          // this.listenTo( nfRadio.channel( 'dashboard' ), 'did:something', this.something );
      }
    } 

    } );
    return view;
} );
