From 75c93f38555e3865a26362911043f52a577c2ea0 Mon Sep 17 00:00:00 2001 From: ZitRo Date: Wed, 29 Apr 2015 18:02:06 +0300 Subject: [PATCH] fixed docs opening issues, missed line in previous commit --- cache/projectTemplate.xml | 5 +++-- package.json | 2 +- web/jsLib/joint.js | 6 +++--- web/jsLib/joint.shapes.uml.js | 4 +++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/cache/projectTemplate.xml b/cache/projectTemplate.xml index 53bb53c..26f94b0 100644 --- a/cache/projectTemplate.xml +++ b/cache/projectTemplate.xml @@ -3,7 +3,7 @@ Class contains methods that return structured class data. -63670,72515.130814 +63671,64479.682329 63653,67019.989197 @@ -60,6 +60,7 @@ return structured data about class set oProperties = ##class(%ZEN.proxyObject).%New() set oClass.NAMESPACE = $NAMESPACE + set oClass.ABSTRACT = classDefinition.Abstract set oClass.super = classDefinition.Super set oClass.properties = oProperties set count = classDefinition.Properties.Count() @@ -220,7 +221,7 @@ return structured data about class - + diff --git a/package.json b/package.json index 393c029..5e0fa69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CacheUMLExplorer", - "version": "0.5.0", + "version": "0.5.1", "description": "An UML Class explorer for InterSystems Caché", "directories": { "test": "test" diff --git a/web/jsLib/joint.js b/web/jsLib/joint.js index 9e8085c..40cba43 100644 --- a/web/jsLib/joint.js +++ b/web/jsLib/joint.js @@ -17222,9 +17222,9 @@ if ( typeof window === "object" && typeof window.document === "object" ) { tspan.node.style[j] = setup["STYLES"][j]; } } - if (opt.clickHandler) { - tspan.node.onclick = opt.clickHandler; - } + } + if (opt.clickHandler) { + tspan.node.onclick = opt.clickHandler; } // Make sure the textContent is never empty. If it is, add an additional // space (an invisible character) so that following lines are correctly diff --git a/web/jsLib/joint.shapes.uml.js b/web/jsLib/joint.shapes.uml.js index 2be2234..d4cec50 100644 --- a/web/jsLib/joint.shapes.uml.js +++ b/web/jsLib/joint.shapes.uml.js @@ -103,7 +103,9 @@ joint.shapes.uml.Class = joint.shapes.basic.Generic.extend({ attrs['.uml-class-' + rect.type + '-text'].text = lines.join('\n'); if (nameClickHandler) { - if (rect.type === "name") attrs['.uml-class-' + rect.type + '-text'].clickHandler = nameClickHandler; + if (rect.type === "name") { + attrs['.uml-class-' + rect.type + '-text'].clickHandler = nameClickHandler; + } } attrs['.uml-class-' + rect.type + '-rect'].height = rectHeight; attrs['.uml-class-' + rect.type + '-rect'].transform = 'translate(0,'+ offsetY + ')';