• timmywil's avatar
    Some adjustments and style edits on lrbabe's pull for requestAnimationFrame · fe3203bb
    timmywil authored
    - Moved support.js check to effects.js.  This is just an assignment to the function if it exists.  Removed string concatenations.
    
      + Still need to do the checks on window, but after that, window is no longer needed.
    
    - Switched ternary to an if statmenet
    
    - assigned timerId to a number rather than the function. I did perf tests to check which is faster.
    fe3203bb
effects.js 13.5 KB