Created
December 28, 2011 16:24
-
-
Save Prinzhorn/1528556 to your computer and use it in GitHub Desktop.
jQuery-inlog samples
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
$('#about').siblings('h1').add('h2').css('color', '#09f').end().css('text-transform', 'uppercase'); |
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
var defaults = { | |
enabled: false,//Enable logging | |
thisValue: false,//Output this-value | |
returnValue: true,//Output return-value | |
indent: true,//Indent nested calls (makes sense for maxDepth !== 0) | |
maxDepth: 0,//Max depth of nested calls | |
rawOutput: false//If true, the raw stacktrace-objects will be printed (thisValue, returnValue and indent are all included for free) | |
}; |
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
<body> | |
<div class="bar"> | |
<div class="bar"> | |
<div id="foo"></div> | |
</div> | |
</div> | |
<div id="bacon"></div> | |
</body> |
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
$l(true); | |
$("#foo").parents(".bar").next().prev().parent().fadeOut(); | |
$l(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment