]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Rewrite a few helpers to be more efficient 2712/head
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 5 Jun 2016 20:40:29 +0000 (22:40 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 5 Jun 2016 21:23:19 +0000 (23:23 +0200)
commit287cefc9b9bf8530b48840046209f22b3991378e
tree4936ecde07a85ca6450195339f0dd4f7341f036e
parentbe4ef73ecdd2df72cd8eb009f763e1288919c3d0
Rewrite a few helpers to be more efficient

Resolve at definition time if a browser built-in method or our polyfill should be used, so avoid checking it for each call. Also, `helpers.extend` doesn't need to iterate two times on the function arguments. Finally, remove helpers never referenced.
src/core/core.helpers.js