BTW, there is a thing about Milkbox I'd like to point out here, cause
it's specifically addressed to advanced developers.

v3.0 it's not a single class. In the js file you'll find 3 classes
instead. The main Milkbox (that now is a singleton), MilkboxDisplay
and MilkboxGallery.
MilkboxDisplay is the class that build the DOM display, and for now is
instantiated only one, but it's not a singleton. MilkboxGallery is
instantiated
once for every gallery (even if it's a 1-file gallery). So Milkbox
always deals with 1 MilkboxDisplay instance and a certain number of
MilkboxGallery instances.
Each one has also some utility methods, for ex. MilkboxGallery has a
'name' property, and get_index_of() or get_item(); MilkboxDisplay has
4 events: onNextClick, onPrevClick, onPlayPause, onDisappear,
onResizeComplete.

This new code structure, from my point of view (and this was exactly
my goal), opens a certain number of possibilities for advanced
developers. I mean, as long as one stick on the MilkboxDisplay or
MilkboxGallery 'interfaces' (OOP meaning here), he can build his own
display or gallery class, if he need to. Also (don't know why one
should do it, but... You know.. Devs are crazy enough.. ) one could
use more than one MilkboxDisplay instance. Anyway, for a developer in
need of some customization, it's far easier now to tweak Milkbox, I
think.

Sorry for bad english as always, and thanks for your attention..

Have a nice day!

Reply via email to