some cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-12-18 05:09:47 +04:00
parent e8c2aebf56
commit 5e4498ca79

View File

@ -68,15 +68,15 @@ var getMarkedGIDBefore = makeGIDBeforeGetterFromList(
// - toggle mark_class on the mark element // - toggle mark_class on the mark element
// - call the callback, if defined, passing it: // - call the callback, if defined, passing it:
// - gid // - gid
// - action ('on' on 'off') // - action ('on' or 'off')
// - trigger the evt_name on the viewer passing it: // - trigger the evt_name on the viewer passing it:
// - gid // - gid
// - action ('on' on 'off') // - action ('on' or 'off')
// //
// The actual toggler is built with createCSSClassToggler(..), see its // The actual toggler is built with createCSSClassToggler(..), see its
// docs for protocol descrittion. // docs for protocol descrittion.
// //
// The resulting toggled, by default, marks the current image // The resulting toggler, by default, marks the current image
// (.current.image), but can be passed a different image as first // (.current.image), but can be passed a different image as first
// argument. // argument.
// //
@ -147,7 +147,7 @@ function makeMarkUpdater(img_class, mark_class, test){
/********************************************************************** /**********************************************************************
* Basic marks... *
*/ */
var updateSelectedImageMark = makeMarkUpdater( var updateSelectedImageMark = makeMarkUpdater(
@ -336,8 +336,6 @@ function invertImageMarks(){
// Toggle marks in the current continuous section of marked or unmarked // Toggle marks in the current continuous section of marked or unmarked
// images... // images...
// XXX need to make this dynamic data compatible...
// XXX this will mark the block ONLY IF it is loaded!!!
function toggleMarkBlock(image){ function toggleMarkBlock(image){
image = image == null ? getImage() : image image = image == null ? getImage() : image
var gid = typeof(image) == typeof('str') ? image : getImageGID(image) var gid = typeof(image) == typeof('str') ? image : getImageGID(image)