diff options
author | jiteshjha | 2016-06-30 16:22:23 +0530 |
---|---|---|
committer | jiteshjha | 2016-06-30 16:22:23 +0530 |
commit | 4a1a77706b7c7aafb9634917e564b5ccdc4da732 (patch) | |
tree | e7b5e62bbb9179900ac52f950d7c470f8da803e1 /index.html | |
parent | 937dcaece3da2a453c671e6bb6e6aa16af98ca54 (diff) | |
download | xcos-on-web-4a1a77706b7c7aafb9634917e564b5ccdc4da732.tar.gz xcos-on-web-4a1a77706b7c7aafb9634917e564b5ccdc4da732.tar.bz2 xcos-on-web-4a1a77706b7c7aafb9634917e564b5ccdc4da732.zip |
Code refactoring part 3
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -412,13 +412,13 @@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // https://jgraph.github.io/mxgraph/docs/js-api/files/model/mxCell-js.html // Uncomment this block to see XML tags work - /*graph.convertValueToString = function(cell) + graph.convertValueToString = function(cell) { if (mxUtils.isNode(cell.value)) { return cell.getAttribute('label', ''); } - };*/ + }; var cellLabelChanged = graph.cellLabelChanged; graph.cellLabelChanged = function(cell, newValue, autoSize) { @@ -2163,10 +2163,10 @@ function preload(sources) { /* - * sources will have the required filenames in the mentioned folder + * @Parameter: sources will have the required filenames in the mentioned folder * For each image url, make a new image to enable preloading */ - for (var i = 0, length = sources.length; i < length; ++i) { + for (i in sources) { var image = new Image(); image.src = sources[i]; } |