Skip to content

Commit

Permalink
#82 javascript convertion changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AgriyaDev5 committed Mar 12, 2021
1 parent fd503ab commit 835a345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/editor/panels/LeftPanelHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class LeftPanelHandlers {
clickZoom () {
if (this.updateLeftPanel('tool_zoom')) {
this.svgCanvas.setMode('zoom');
this.editor.workarea.css('cursor', this.editor.zoomInIcon);
this.editor.workarea.style.cursor = this.editor.zoomInIcon;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/editor/panels/TopPanelHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class TopPanelHandlers {
*/
clickWireframe () {
$id('tool_wireframe').pressed = !$id('tool_wireframe').pressed;
this.editor.workarea.toggleClass('wireframe');
this.editor.workarea.classList.toggle('wireframe');

const wfRules = $('#wireframe_rules');
if (!wfRules.length) {
Expand Down

0 comments on commit 835a345

Please sign in to comment.