Open Bug 1370014 Opened 3 years ago

Sample event handling of drag event is just bad example of coding practices

Categories

(Developer Documentation :: HTML, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: jan, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

Documentation of drag should provide demo code where the drag event actually does something.

The current code has a callback that has empty body, so it doesn't do anything except slow down the browser...:

document.addEventListener("drag", function( event ) {
}, false);
You need to log in before you can comment on or make changes to this bug.