4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Extensions are loaded twice #1073

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add console.log(args); to line 5026 of svg-editor.js within 
Editor.addExtension = function()
2. Run the project, view the console and you can see the extensions are loaded 
twice

What is the expected output? What do you see instead?
Extensions should only be loaded once

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)
Chrome

In what version of SVG-edit does the problem occur? (Latest trunk, 2.5.1,
etc)
2.6

Please provide any additional information below.

Original issue reported on code.google.com by jcrump...@gmail.com on 19 Mar 2013 at 2:40

GoogleCodeExporter commented 9 years ago
It's not. It's calling svgCanvas's addExtension which will check if an 
extension is already loaded, and ignore if that is the case. See 
https://code.google.com/p/svg-edit/source/browse/trunk/editor/svgcanvas.js#503

Original comment by asyazwan on 6 Apr 2013 at 4:04