selector.once

description

Disables the selector after the first selection has happened.

syntax

getSelector(ELEMENT_NAME).once()

example(s)


@
@newImage("square", "square.png")
@,
@newImage("triangle", "triangle.png")
@    .before( getImage("square") )
@    .print()
@,
@newSelector("shapes")
@    .add( getImage("square") , getImage("triangle") )
$    .once()
  • Adds two images side by side and a button to click below them. Any selection is definitive: further clicks will not move the frame.