Browse Source

More descriptive warning on missing locale (see #761)

v3_develop
jos 9 years ago
parent
commit
61b9513070
7 changed files with 33 additions and 37 deletions
  1. +20
    -20
      dist/vis.js
  2. +1
    -1
      dist/vis.map
  3. +10
    -12
      dist/vis.min.js
  4. +0
    -1
      examples/graph2d/13_localization.html
  5. +0
    -1
      examples/timeline/19_localization.html
  6. +1
    -1
      lib/timeline/component/CurrentTime.js
  7. +1
    -1
      lib/timeline/component/CustomTime.js

+ 20
- 20
dist/vis.js View File

@ -10717,7 +10717,7 @@ return /******/ (function(modules) { // webpackBootstrap
var locale = this.options.locales[this.options.locale];
if (!locale) {
if (!this.warned) {
console.log('WARNING: locale "' + this.options.locale + '" not found in vis.js');
console.log('WARNING: options.locales[\'' + this.options.locale + '\'] not found. See http://visjs.org/docs/timeline.html#Localization');
this.warned = true;
}
locale = this.options.locales['en']; // fall back on english when not available
@ -10923,7 +10923,7 @@ return /******/ (function(modules) { // webpackBootstrap
var locale = this.options.locales[this.options.locale];
if (!locale) {
if (!this.warned) {
console.log('WARNING: locale "' + this.options.locale + '" not found in vis.js');
console.log('WARNING: options.locales[\'' + this.options.locale + '\'] not found. See http://visjs.org/docs/timeline.html#Localization');
this.warned = true;
}
locale = this.options.locales['en']; // fall back on english when not available
@ -30570,9 +30570,9 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ function(module, exports, __webpack_require__) {
var util = __webpack_require__(1);
var RepulsionMixin = __webpack_require__(67);
var HierarchialRepulsionMixin = __webpack_require__(68);
var BarnesHutMixin = __webpack_require__(69);
var RepulsionMixin = __webpack_require__(68);
var HierarchialRepulsionMixin = __webpack_require__(69);
var BarnesHutMixin = __webpack_require__(70);
/**
* Toggling barnes Hut calculation on and off.
@ -35012,6 +35012,19 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ },
/* 67 */
/***/ function(module, exports, __webpack_require__) {
function webpackContext(req) {
throw new Error("Cannot find module '" + req + "'.");
}
webpackContext.keys = function() { return []; };
webpackContext.resolve = webpackContext;
module.exports = webpackContext;
webpackContext.id = 67;
/***/ },
/* 68 */
/***/ function(module, exports, __webpack_require__) {
/**
@ -35081,7 +35094,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ },
/* 68 */
/* 69 */
/***/ function(module, exports, __webpack_require__) {
/**
@ -35240,7 +35253,7 @@ return /******/ (function(modules) { // webpackBootstrap
};
/***/ },
/* 69 */
/* 70 */
/***/ function(module, exports, __webpack_require__) {
/**
@ -35644,19 +35657,6 @@ return /******/ (function(modules) { // webpackBootstrap
};
/***/ },
/* 70 */
/***/ function(module, exports, __webpack_require__) {
function webpackContext(req) {
throw new Error("Cannot find module '" + req + "'.");
}
webpackContext.keys = function() { return []; };
webpackContext.resolve = webpackContext;
module.exports = webpackContext;
webpackContext.id = 70;
/***/ },
/* 71 */
/***/ function(module, exports, __webpack_require__) {

+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 10
- 12
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 0
- 1
examples/graph2d/13_localization.html View File

@ -28,7 +28,6 @@
<select id="locale">
<option value="en" selected>en</option>
<option value="nl">nl</option>
<option value="cs">cs</option>
</select>
</p>

+ 0
- 1
examples/timeline/19_localization.html View File

@ -24,7 +24,6 @@
<select id="locale">
<option value="en" selected>en</option>
<option value="nl">nl</option>
<option value="cs">cs</option>
</select>
</p>

+ 1
- 1
lib/timeline/component/CurrentTime.js View File

@ -90,7 +90,7 @@ CurrentTime.prototype.redraw = function() {
var locale = this.options.locales[this.options.locale];
if (!locale) {
if (!this.warned) {
console.log('WARNING: locale "' + this.options.locale + '" not found in vis.js');
console.log('WARNING: options.locales[\'' + this.options.locale + '\'] not found. See http://visjs.org/docs/timeline.html#Localization');
this.warned = true;
}
locale = this.options.locales['en']; // fall back on english when not available

+ 1
- 1
lib/timeline/component/CustomTime.js View File

@ -120,7 +120,7 @@ CustomTime.prototype.redraw = function () {
var locale = this.options.locales[this.options.locale];
if (!locale) {
if (!this.warned) {
console.log('WARNING: locale "' + this.options.locale + '" not found in vis.js');
console.log('WARNING: options.locales[\'' + this.options.locale + '\'] not found. See http://visjs.org/docs/timeline.html#Localization');
this.warned = true;
}
locale = this.options.locales['en']; // fall back on english when not available

Loading…
Cancel
Save