How to use spaniel - 2 common examples

To help you get started, we’ve selected a few spaniel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hummingbird-me / hummingbird-client / app / components / paginated-resource / infinite.js View on Github external
init() {
    this._super(...arguments);
    set(this, 'watcher', new spaniel.Watcher({ rootMargin: this._getRootMargin() }));
  },
github hummingbird-me / hummingbird-client / app / components / paginated-resource / infinite.js View on Github external
_setupViewport() {
    const element = get(this, 'element');
    spaniel.scheduleWork(() => {
      get(this, 'watcher').watch(element, () => {
        get(this, 'getNextData').perform();
      });
    });
  },

spaniel

LinkedIn's viewport tracking library

Apache-2.0
Latest version published 2 months ago

Package Health Score

74 / 100
Full package analysis

Popular spaniel functions