Lattice Grid Buy a licence

The grid (core) ยท console.warn

{on|once}('{type}') needs a function; ignored.

Printed by The grid (core), prefixed [lattice], since 1.0.1.

Warnings referencebus.handler:*

Identifier
bus.handler:*
Raised by
The grid (core)
Since
1.0.1

What happened

on() or once() was called with something that is not a function, so nothing was subscribed. A no-op unsubscribe function is returned, so calling code is safe.

The fix

Pass the handler function itself, not its result - grid.on('sort:changed', handler) rather than handler().

Reference

Covered in full at the API reference.