Skip to content

Commit

Permalink
Merge branch 'edge' of git@github.com:neyric/wireit into edge
Browse files Browse the repository at this point in the history
  • Loading branch information
ericabouaf committed Sep 23, 2010
2 parents 6d451fd + db0f999 commit 7bef14f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/editor/js/WiringEditor.js
Expand Up @@ -193,6 +193,8 @@ lang.extend(WireIt.WiringEditor, WireIt.BaseEditor, {
*/
addModule: function(module, pos) {
try {
if (pos[0] < 0) pos[0] = 0;
if (pos[1] < 0) pos[1] = 0;
var containerConfig = module.container;
containerConfig.position = pos;
containerConfig.title = module.name;
Expand Down

0 comments on commit 7bef14f

Please sign in to comment.