Cannot read property 'el' of undefined jsPlumb-2.2.3-min.js:2

50 views
Skip to first unread message

Ricardo Torres

unread,
Aug 2, 2018, 5:13:04 PM8/2/18
to jsPlumb

Good afternoon people! I am Ricardo, I am studying Computer Engineering at UFOP (Federal University of Ouro Preto), and I develop a project whose objective is to implement a web system that will aid in the study of the subject Database I. I take as base of my code the open source system OMT-G Designer (which also aims to model database, however, specifically geographic). Being that my goal is Model ER I am making some modifications and finding some errors. If someone who has knowledge / curiosity with Backbone and jsPlumb frameworks, and is willing to help me ready the errors and links below:

Errors:


       

1 - The 'cid' function (which generates id's not repeated) of the Backbone only prints 'undefinined' on the canvas (where I do the modeling)

2-When I change a position entity the following error appears: "jsPlumb function failed: TypeError: Can not read property 'of' undefined jsPlumb-2.2.3-min.js: 2"

3-When deleting an entity its relationships are consequently also deleted. Relationships are inserted by dragging from the source entity to the target. If I modify the position of an entity and in sequence to deletion, the relationship is not deleted and is pointing to the location of the deleted entity.error 3 image 1

4 - By changing the position of the entities before connecting the relationship, the connection leaves the source and goes to the beginning of the canvas (not the target).error 4 image 2

Links:

-Github of OMTG Designer: The entity is deleted here https://github.com/lizardoluis/omtg-designer/blob/master/www/js/views/omtg/diagram-view.js#L127. Where a JsPlumb function, line 132, is called, which deletes all entity-bound relationships. What makes the diagram move when selected by the mouse is a JsPlumb function set here: https://github.com/lizardoluis/omtg-designer/blob/master/www/js/views/canvas-view.js#L129

-My github: The entity is deleted here https://github.com/ricardovmtorres/BD-ICEA/blob/master/C%C3%B3digo/www/js/appTeste.js#L1049 Where a JsPlumb function, line 132, is called, which deletes all entity-bound relationships. What makes the diagram move when selected by the mouse is a JsPlumb function set here: https://github.com/ricardovmtorres/BD-ICEA/blob/master/C%C3%B3digo/www/js/appTeste.js# L1211


Note: I also need help separating each of these functions I did in the appTest in separate files, for better maintenance. And some program that compresses all into a minimum file every time I save the modifications in the respective files of each function to accelerate the download of the pages.

Reply all
Reply to author
Forward
0 new messages