refactoring jquery isolation in shape tracing script

--HG--
branch : 1.x
This commit is contained in:
Dave Reed
2011-03-28 12:14:07 -07:00
parent 930decd725
commit 6bc856ca7b

View File

@@ -1,5 +1,4 @@
(function ($) { jQuery(function($) {
$(document).ready(function () {
// default shape window height when first opened // default shape window height when first opened
var defaultHeight = 200; var defaultHeight = 200;
@@ -435,8 +434,6 @@
event.stopPropagation(); event.stopPropagation();
}); });
});
// recursively create a node for the shapes tree // recursively create a node for the shapes tree
function createTreeNode(shapeNode) { function createTreeNode(shapeNode) {
var node = $('<li></li>'); var node = $('<li></li>');
@@ -461,4 +458,4 @@
return node; return node;
} }
})(jQuery); });