Skip to content

Instantly share code, notes, and snippets.

@micmath
Created November 26, 2010 14:12
Show Gist options
  • Save micmath/716758 to your computer and use it in GitHub Desktop.
Save micmath/716758 to your computer and use it in GitHub Desktop.
// create an overlay off the jquery object
$('mydiv').geluiOverlay(opts).css(...); // keep on chaining
// get the instance of the overlay back
myOverlay = $('mydiv').data('geluiOverlay');
// or
// get the instance of the overlay bac
myOverlay = $('mydiv').geluiOverlay('instance'); // no chain
// create an instance from a constructor
myOverlay = new gelui.Overlay(opts);
// get the jquery object from the instance and start chaining
myOverlay.$.css(...); // chain here
// or
// get the jquery object from the instance and start chaining
myOverlay.element.css(...);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment