fix for firefox image drag bug (fixes #387, and drag-and-drop)

This commit is contained in:
rlx 2012-02-15 23:08:20 +00:00
parent 5b94a68f0f
commit 33eb986c59

View file

@ -260,6 +260,10 @@ Ox.load.UI = function(options, callback) {
Ox.$document = Ox.UI.$document = $(document); Ox.$document = Ox.UI.$document = $(document);
Ox.$head = Ox.UI.$head = $('head'); Ox.$head = Ox.UI.$head = $('head');
Ox.$window = Ox.UI.$window = $(window); Ox.$window = Ox.UI.$window = $(window);
// fixme: is this the right place to do this?
$.browser.mozilla && Ox.$document.bind('dragstart', function() {
return false;
});
callbacks.forEach(function(callback) { callbacks.forEach(function(callback) {
callback(); callback();
}); });