Skip to content
Snippets Groups Projects
Commit 1de59356 authored by Fabien Meghazi's avatar Fabien Meghazi
Browse files

[IMP] Use correct jquery api

bzr revid: fme@openerp.com-20120801134018-q0362cob3osvawbg
parent fb03a927
Branches
Tags
No related merge requests found
......@@ -415,12 +415,12 @@ instance.web.Bus = instance.web.Class.extend(instance.web.EventDispatcherMixin,
// check gtk bindings
// http://unixpapa.com/js/key.html
_.each('click,dblclick,keydown,keypress,keyup'.split(','), function(evtype) {
$('html').on(evtype, self, function(ev) {
$('html').on(evtype, function(ev) {
self.trigger(evtype, ev);
});
});
_.each('resize,scroll'.split(','), function(evtype) {
$(window).on(evtype, self, function(ev) {
$(window).on(evtype, function(ev) {
self.trigger(evtype, ev);
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment