Skip to content

Commit

Permalink
rename addListener to addEventListener in examples according to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matas Petrikas committed Nov 24, 2009
1 parent 43e23f7 commit 75234b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
JavaScript based API for the SoundCloud player widget.
Includes jQuery and Prototype.js support.

soundcloud.addListener('onPlayerReady', function(player, data) {
soundcloud.addEventListener('onPlayerReady', function(player, data) {
console.log('player ready');
});

Expand Down
2 changes: 1 addition & 1 deletion examples/example_basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>Player JavaScript API - simple listener implementation (JS Library agnostic)

<pre>
<code>
soundcloud.addListener('onPlayerReady', function(flashId, data) {
soundcloud.addEventListener('onPlayerReady', function(flashId, data) {
// please refer to the documentation for the full list of available methods
// btw, here the flash can be accessed too as 'this' like in 'this.api_play()'
soundcloud.getPlayer(flashId).api_play();
Expand Down

0 comments on commit 75234b0

Please sign in to comment.