clone abstract method

ElementQuery clone([
  1. bool withDataAndEvents,
  2. bool deepWithDataAndEvents
])

Create a deep copy of the elements in this collection. *

    • If withDataAndEvents is true, the data on the elements are cloned as
  • well. Default: false.
    • In addition to above, is deepWithDataAndEvents is also true, the data
  • on the descendants of the elements are also cloned. Default: same as
  • withDataAndEvents.

Implementation

ElementQuery clone([bool withDataAndEvents, bool deepWithDataAndEvents]);