Permalink
Browse files

instructions.md examples clip.addEventListeners missing "on" fix

  • Loading branch information...
1 parent 0399453 commit fc8cc29601a18b98c577b4e8187b600b0fc7d3dc @jpablobr jpablobr committed Jul 26, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 docs/instructions.md
View
@@ -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");
} );
@@ -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.