]> source.dussan.org Git - jquery-ui.git/commitdiff
Avoid reattach events
authorEduardo Lundgren <eduardolundgren@gmail.com>
Tue, 27 May 2008 02:20:19 +0000 (02:20 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Tue, 27 May 2008 02:20:19 +0000 (02:20 +0000)
ui/tests/resizable.html

index d89b9e7ad6c33f118484aeb63cd3d92db34a59c6..b911a07678b9325f6ea81bba5f3f41fa30a21b4d 100644 (file)
@@ -42,7 +42,7 @@
                                        .animate({ width: 80, height: 80, left: co.x-40, top: co.y-40, opacity: 'hide' }, 1000, function() { $(this).remove(); });
        };
        
-       $('#btn').click(function() {
+       $(function() {
                
                /*$('#resizable1').mouseover(function() {
                        $(this).css('background', 'red');
                        //console.log('keydown')
                });
                
+       });
+       
+       $('#btn').click(function() {
+               
                
                 // TODO - works in all browsers, but have to fix a bug on opera
                 $('#key').userAction("keydown", {