Browse Source

v1.1.2: Ctrl+Click on overridden properties fix

CrazyDoctor 1 month ago
parent
commit
d484df9f99
2 changed files with 2 additions and 2 deletions
  1. 1 1
      package.json
  2. 1 1
      static/page/class/script.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "doczilla_js_docs",
-	"version": "1.1.1",
+	"version": "1.1.2",
 	"dependencies": {
 		"@types/sqlite3": "^3.1.11",
 		"@types/ws": "^8.5.10",

+ 1 - 1
static/page/class/script.js

@@ -859,7 +859,7 @@ class ClassPage {
 				attributes: {
 					[ClassPage.Attributes.DataPropertyName]: propertyName,
 					[ClassPage.Attributes.DataPropertyType]: foundProperty.type === 'method' ? 'Methods' : 'Properties',
-					[ClassPage.Attributes.DataPropertyParent]: foundProperty.inherited ? foundProperty.nearestParent : '',
+					[ClassPage.Attributes.DataPropertyParent]: foundProperty.inherited && !foundProperty.overridden ? foundProperty.nearestParent : '',
 					[ClassPage.Attributes.OnClick]: 'window.page.onPropertyClick(this);'
 				}
 			});