toddmotto / echo

Lazy-loading images with data-* attributes

Home Page:http://toddmotto.com/labs/echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default.init is not a function...

jesperlandberg opened this issue · comments

Hi,

I'm using browserify and this is giving me c.default.init is not a function error.

import echo from 'echo-js'

echo.init({
    offset: 100,
    throttle: 250,
    unload: false
})

Why is this?

If someone will be looking for the answer:

import echo from 'echo-js';

echo(window).init({
  throttle: 250,
  offset: 1000,
  unload: true,
});