You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this circumstance, only photo a and photo b would be loaded. Photo c, d, e, f would not be loaded, for the reason that the root variable inside Echo.js is setted to be global (which is window mostly).
To solve this problem, the root variable need to be configurable. Modification is listed below:
echo.init = function (opts) {
opts = opts || {};
// modification
root = opts.viewport || this || (0,eval)('this')
// original codes
};
ethonchan
2015-04-01
The text was updated successfully, but these errors were encountered:
ethonchan
pushed a commit
to ethonchan/echo
that referenced
this issue
Apr 1, 2015
When a list of images inside a scrollable div, only images at the top would be loaded. structure like below:
In this circumstance, only
photo a
andphoto b
would be loaded.Photo c, d, e, f
would not be loaded, for the reason that theroot
variable insideEcho.js
is setted to beglobal
(which iswindow
mostly).To solve this problem, the
root
variable need to be configurable. Modification is listed below:ethonchan
2015-04-01
The text was updated successfully, but these errors were encountered: