Sha256: 81dcee980b5dd9b6bdd6942eab4505f05e1bc815dd8e67ee649933b8973f59cc

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

($ document).on 'click', '.play', (e) ->
  e.preventDefault();

  soundManager.preferFlash = true

  mySound = soundManager.createSound url: this.href
  mySound.play()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soundmanager-rails-1.0.1 test/dummy/app/assets/javascripts/demo.js.coffee.erb
soundmanager-rails-1.0.0 test/dummy/app/assets/javascripts/demo.js.coffee.erb