From ecb525c7a86857415866db29da10479bf0baa205 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 11 Jun 2015 11:07:17 +0200 Subject: [PATCH] Improved locales validation again --- lib/network/options.js | 5 ++++- lib/timeline/optionsGraph2d.js | 5 ++++- lib/timeline/optionsTimeline.js | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/network/options.js b/lib/network/options.js index c2bbd57e..888f1c02 100644 --- a/lib/network/options.js +++ b/lib/network/options.js @@ -268,7 +268,10 @@ let allOptions = { autoResize: {boolean}, clickToUse: {boolean}, locale:{string}, - locales:{object}, + locales:{ + __any__: {any}, + __type__: {object} + }, height: {string}, width: {string}, __type__: {object} diff --git a/lib/timeline/optionsGraph2d.js b/lib/timeline/optionsGraph2d.js index 1e0a7bd1..df172ed4 100644 --- a/lib/timeline/optionsGraph2d.js +++ b/lib/timeline/optionsGraph2d.js @@ -127,7 +127,10 @@ let allOptions = { height: {string, number}, hiddenDates: {object, array}, locale:{string}, - locales:{object}, + locales:{ + __any__: {any}, + __type__: {object} + }, max: {date, number, string, moment}, maxHeight: {number, string}, min: {date, number, string, moment}, diff --git a/lib/timeline/optionsTimeline.js b/lib/timeline/optionsTimeline.js index 66bc1fb3..5666e76b 100644 --- a/lib/timeline/optionsTimeline.js +++ b/lib/timeline/optionsTimeline.js @@ -66,7 +66,10 @@ let allOptions = { height: {string, number}, hiddenDates: {object, array}, locale:{string}, - locales:{object}, + locales:{ + __any__: {any}, + __type__: {object} + }, margin: { axis: {number}, item: {