Sha256: 9a7e1dd834fb0d6712a44888931e8b2081ccc8a78cd0436e364e7fe4bb0cfbb9

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

function AudioPlayer(options) {
  this.options = $.extend({
    selector: "#audio-player"
  }, options);
  this.element = $(this.options.selector)
}

AudioPlayer.prototype.change = function(view, audio) {
  this.element.html(view.render("audio_sources.ejs", {sources: audio.sources}));
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rawq-0.1.0 lib/rawq/templates/public/javascript/audio_player.js