]> source.dussan.org Git - jquery-ui.git/commitdiff
Testing relatedTarget onmouseover
authorEduardo Lundgren <eduardolundgren@gmail.com>
Tue, 27 May 2008 02:29:55 +0000 (02:29 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Tue, 27 May 2008 02:29:55 +0000 (02:29 +0000)
ui/tests/resizable.html

index ce2c9ce800eb33d8e1064fa50915aa6b5411c07a..b6df6e36435e96c57ad3142a13dca1f2363f8c30 100644 (file)
        
        $(function() {
                
-               /*$('#resizable1').mouseover(function() {
+               $('#resizable1').mouseover(function() {
                        $(this).css('background', 'red');
                });
                
                $('#resizable1').mouseout(function() {
                        $(this).css('background', 'yellow');
-               });*/
+               });
                
                $('#key').keydown(function() {
                        console.log('keydown')
                        charCode: 67,
                        keyCode: 67,
                        after: function(e) {
-                               console.log(e)
+                               //console.log(e)
                        },
                        before: function(e) {
-                               console.log(e)
+                               //console.log(e)
                        }
                });
                
                        }
                });
                
-               /*$('#main').userAction("mouseout", {
+               $('#main').userAction("mouseout", {
                        
                        target: '.ui-resizable-e',
-                       //relatedTarget: '#resizable1',
+                       
+                       relatedTarget: '#resizable1',
+                       
                        //x: $('#resizable1').offset().left,
+                       
                        //y:  $('#resizable1').offset().top,
+                       
                        //bubbles: true,
+                       
                        //cancelable: false, 
+                       
                        //view: window,
+                       
                        //ctrlKey: false, 
+                       
                        //altKey: false, 
+                       
                        //shiftKey: false, 
+                       
                        //relatedTarget: null, 
+                       
                        //screenX: 0, 
+                       
                        //screenY: 0,
+                       
                        //metaKey: false, 
+                       
                        //button: 0,
+                       
                        //center: false,
+                       
                        //center: [100, 100],
                        
-                       before: function(e, o) {
-                               //console.log('before')
+                       before: function(e, x, y) {
+                               console.log(e)
                        },
-                       after: function(e, o) {
-                               //console.log('after')
+                       after: function(e, x, y) {
+                               console.log(e)
                        }
-               });*/
+               });
                
        });