/* This example demonstrates the mouse events that any Ox.Element fires. */ Ox.load('UI', function() { var $target = Ox.Element() .addClass('OxMonospace') .attr({id: 'target'}) .html('click/hold/drag') .appendTo(Ox.$body), $log = Ox.Element() .attr({id: 'log'}) .appendTo(Ox.$body), $clear = Ox.Element() .addClass('OxMonospace') .attr({id: 'clear'}) .html('clear log') .bind({click: function() { $log.empty(); }}) .appendTo(Ox.$body); [ 'anyclick', 'singleclick', 'doubleclick', 'mousedown', 'mouserepeat', 'dragstart', 'drag', 'dragenter', 'dragleave', 'dragpause', 'dragend' ].forEach(function(event) { $target.bindEvent(event, function(e) { var date = new Date(); $('