Skip to content

Commit

Permalink
instructions.md examples clip.addEventListeners missing "on" fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpablobr committed Jul 26, 2012
1 parent 0399453 commit fc8cc29
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/instructions.md
Expand Up @@ -341,30 +341,30 @@ Here is a complete example which exercises every option and event handler:
clip.setHandCursor( true );
clip.setCSSEffects( true );
clip.addEventListener( 'load', function(client) {
clip.addEventListener( 'onLoad', function(client) {
// alert( "movie is loaded" );
} );
clip.addEventListener( 'complete', function(client, text) {
clip.addEventListener( 'onComplete', function(client, text) {
alert("Copied text to clipboard: " + text );
} );
clip.addEventListener( 'mouseOver', function(client) {
clip.addEventListener( 'onMouseOver', function(client) {
// alert("mouse over");
} );
clip.addEventListener( 'mouseOut', function(client) {
clip.addEventListener( 'onMouseOut', function(client) {
// alert("mouse out");
} );
clip.addEventListener( 'mouseDown', function(client) {
clip.addEventListener( 'onMouseDown', function(client) {
// set text to copy here
clip.setText( document.getElementById('clip_text').value );
// alert("mouse down");
} );
clip.addEventListener( 'mouseUp', function(client) {
clip.addEventListener( 'onMouseUp', function(client) {
// alert("mouse up");
} );
Expand All @@ -384,4 +384,4 @@ The Zero Clipboard Library has been tested on the following browsers / platforms
|| Safari || - || - || 3.0 ||
|| Google Chrome || 1.0 || 1.0 || - ||

Adobe Flash Flash Player versions 9 and 10 are supported.
Adobe Flash Flash Player versions 9 and 10 are supported.

0 comments on commit fc8cc29

Please sign in to comment.