Created
November 26, 2010 14:12
-
-
Save micmath/716758 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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