4 ms·
The first caveat I saw is all the uses of $left, $top etc. Makes me wonder what other variables the library puts into the global namespace.
by EGreg 13y ago
The first caveat I saw is all the uses of $left, $top etc. Makes me wonder what other variables the library puts into the global namespace.
- roryokane 13y agoIn JavaScript’s syntax, if $left and $top are not defined as variables, then {$left: '10px', $top: '10px'} is equivalent to {'$left': '10px', '$top': '10px'} The library doesn’t have to define global variables for that code to work. So it probably doesn’t define them as global variables.
- hk__2 13y agoEven if $left and $top are defined as variables, these codes are equivalent.