2009-02-02 14:36:08 +00:00
|
|
|
/*
|
|
|
|
* selectable_core.js
|
|
|
|
*/
|
2009-02-04 04:53:09 +00:00
|
|
|
|
|
|
|
var el;
|
|
|
|
|
|
|
|
var drag = function(dx, dy) {
|
|
|
|
var off = el.offset(), pos = { clientX: off.left, clientY: off.top };
|
|
|
|
el.simulate("mousedown", pos);
|
|
|
|
$(document).simulate("mousemove", pos);
|
|
|
|
pos.clientX += dx;
|
|
|
|
pos.clientY += dy;
|
|
|
|
$(document).simulate("mousemove", pos);
|
|
|
|
$(document).simulate("mouseup", pos);
|
|
|
|
}
|
|
|
|
|
|
|
|
var border = function(el, side) { return parseInt(el.css('border-' + side + '-width')); }
|
|
|
|
|
|
|
|
var margin = function(el, side) { return parseInt(el.css('margin-' + side)); }
|
|
|
|
|
2009-02-02 14:36:08 +00:00
|
|
|
(function($) {
|
|
|
|
|
|
|
|
module("selectable: core");
|
|
|
|
|
|
|
|
test("testname", function() {
|
|
|
|
ok(false, "missing test - untested code is broken code.");
|
|
|
|
});
|
|
|
|
|
|
|
|
})(jQuery);
|