upgraded to .on(...) event handler binding...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-09-03 03:59:39 +04:00
parent 98de584879
commit f574e9d286

View File

@ -754,7 +754,6 @@ function clickAfterTransitionsDone(img){
// find an image object after which to position image ID...
// used for two main tasks:
// - positioning promoted/demoted images
@ -781,7 +780,6 @@ function getImageBefore_lin(id, ribbon, get_order){
return prev
}
// generic binery search for element just before the id...
// NOTE: if id is in lst, this will return the element just before it.
// NOTE: lst must be sorted.
@ -1041,14 +1039,14 @@ function setupEvents(){
$(window).unload(ImageGrid.saveState)
$(document)
// main modifier events...
.bind('shiftImageUp shiftImageDown reverseImageOrder '+
.on('shiftImageUp shiftImageDown reverseImageOrder '+
'reverseRibbons shiftImageUpNewRibbon shiftImageDownNewRibbon',
function(){
updated = true
})
/*
// navigation events...
.bind('nextImage prevImage nextScreenImages prevScreenImages '+
.on('nextImage prevImage nextScreenImages prevScreenImages '+
'focusAboveRibbon focusBelowRibbon',
function(){
updated = true