Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 313 Bytes
An.object().named('Sound').plural('Sounds').from(Resource).
does('init', function(Url) {
return this.clone().load('audio',Url)
}).
does('play', function() {
if(this.loaded()) this.data().play()
return this
}).
does('pause', function() {
if(this.loaded()) this.data().pause()
return this
})