summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorjiteshjha2016-06-30 16:22:23 +0530
committerjiteshjha2016-06-30 16:22:23 +0530
commit4a1a77706b7c7aafb9634917e564b5ccdc4da732 (patch)
treee7b5e62bbb9179900ac52f950d7c470f8da803e1 /index.html
parent937dcaece3da2a453c671e6bb6e6aa16af98ca54 (diff)
downloadxcos-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.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.html b/index.html
index e0f5180..9b464e8 100644
--- a/index.html
+++ b/index.html
@@ -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];
}