mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 17:32:44 +08:00
refactoring jquery isolation in shape tracing script
--HG-- branch : 1.x
This commit is contained in:
@@ -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);
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user