From f574e9d28657d16abb5a201d6c5fe17621f128de Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 3 Sep 2012 03:59:39 +0400 Subject: [PATCH] upgraded to .on(...) event handler binding... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index e10a117c..869f2d6e 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -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