Browse Source

reverted images function

v3_develop
Alex de Mulder 9 years ago
parent
commit
b26796e514
3 changed files with 26445 additions and 26392 deletions
  1. +1
    -0
      HISTORY.md
  2. +26442
    -26389
      dist/vis.js
  3. +2
    -3
      lib/network/Images.js

+ 1
- 0
HISTORY.md View File

@ -25,6 +25,7 @@ http://visjs.org
- Added getBoundingBox method.
- Community fix for SVG images in IE11, thanks @dponch!
- Fixed repeating stabilized event when the network is already stabilized.
- Added circularImages, thanks for the contribution @brendon1982!
### Graph2d

+ 26442
- 26389
dist/vis.js
File diff suppressed because it is too large
View File


+ 2
- 3
lib/network/Images.js View File

@ -23,11 +23,10 @@ Images.prototype.setOnloadCallback = function(callback) {
* @return {Image} img The image object
*/
Images.prototype.load = function(url, brokenUrl) {
var img = this.images[url];
if (img === undefined) {
if (this.images[url] == undefined) {
// create the image
var me = this;
img = new Image();
var img = new Image();
img.onload = function () {
// IE11 fix -- thanks dponch!

Loading…
Cancel
Save