Browse Source

reverted images function

v3_develop
Alex de Mulder 10 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. - Added getBoundingBox method.
- Community fix for SVG images in IE11, thanks @dponch! - Community fix for SVG images in IE11, thanks @dponch!
- Fixed repeating stabilized event when the network is already stabilized. - Fixed repeating stabilized event when the network is already stabilized.
- Added circularImages, thanks for the contribution @brendon1982!
### Graph2d ### 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 * @return {Image} img The image object
*/ */
Images.prototype.load = function(url, brokenUrl) { Images.prototype.load = function(url, brokenUrl) {
var img = this.images[url];
if (img === undefined) {
if (this.images[url] == undefined) {
// create the image // create the image
var me = this; var me = this;
img = new Image();
var img = new Image();
img.onload = function () { img.onload = function () {
// IE11 fix -- thanks dponch! // IE11 fix -- thanks dponch!

Loading…
Cancel
Save