Permalink
Browse files

updated with hasSoundLoaded method, updates compiled JS version

  • Loading branch information...
1 parent 8591d37 commit 5445f146117a4d89c4e7b13bc8a3c6ab1cb7616c @joeellis joeellis committed Dec 27, 2012
Showing with 28 additions and 0 deletions.
  1. +13 −0 backbone.soundmanager2.coffee
  2. +15 −0 backbone.soundmanager2.js
@@ -110,6 +110,19 @@ class Backbone.SoundManager2
if @sound.paused then "paused" else "playing"
+ # Determine if a sound has already been already loaded.
+ #
+ # Examples
+ #
+ # player.load track
+ # player.hasSoundLoaded() # => true
+ #
+ # Returns boolean.
+
+ hasSoundLoaded: ->
+ @sound?
+
+
# Determine if current playable is equal to playable passed in.
#
# Examples
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 5445f14

Please sign in to comment.