]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Refactor controller scale methods
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 21 May 2016 20:53:58 +0000 (22:53 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 21 May 2016 22:25:53 +0000 (00:25 +0200)
commitd584afb5434d8a3cfbc0df856b88792dd2738037
tree9414940ab8faa097d133a01ef93d3e3f281c1468
parent7108f78d2ff0f9d957add630259ae45f924bb614
Refactor controller scale methods

Rewrite these two methods to reduce code duplication. Note that options.scale is not anymore mapped to 'radialScale' ID but to 'scale' ID (see ensureScalesHaveIDs), since this ID is not referenced anywhere in the code base.
src/core/core.controller.js