I have a use case in which I need to display one exposed overlay on top of another. I want to expose them both.
I searched the documentation for how to do this and found out it is a singleton.
"Unlike other jQuery Tools in this library the mask is a singleton. Only one mask instance can exist at any given time. This singleton can be accessed directly with $.mask or via the this variable inside callback functions."
I can see how this might be useful, but now I have to hack it to get my desired effect.
This allows for an ugly transition to move the current expose above the current mask, but on closing the second layer I have to reinitialize the first expose.
Any chance this will change in future releases?
I searched the documentation for how to do this and found out it is a singleton.
"Unlike other jQuery Tools in this library the mask is a singleton. Only one mask instance can exist at any given time. This singleton can be accessed directly with $.mask or via the this variable inside callback functions."
I can see how this might be useful, but now I have to hack it to get my desired effect.
onBeforeLoad: function() {
if($j.mask.isLoaded()) {
$j.mask.getMask().css({'backgroundColor': '#111111'});
$j.mask.getMask().css({'z-index': '10050'});
} else {
// Default behavior
};
}
This allows for an ugly transition to move the current expose above the current mask, but on closing the second layer I have to reinitialize the first expose.
Any chance this will change in future releases?
