Is it a error in demo code?

Is it a error in demo code?

Regarding to .is() on Jquery document

Example: Shows a few ways is() can be used inside an event handler.

Line 26: $("div").one('click', function () {

It should be:
    
$("div").on('click', function () {