Created
January 8, 2015 12:22
-
-
Save slorber/4b3e88a041d33df851d3 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
| exports.highlightStampleDescription = function highlightBlock(descriptionDiv) { | |
| //$(descriptionDiv).find("pre").first().remove(); | |
| console.error("##################################################"); | |
| console.debug("DOM node in document?",document.contains(descriptionDiv)); | |
| console.debug("DOM node has parent?",descriptionDiv.parentNode); | |
| var codeDivs = $(descriptionDiv).find("pre").get(); | |
| console.debug("codeDivs",codeDivs); | |
| _.each(codeDivs,function(codeDiv) { | |
| console.error("child DOM node has parent?",codeDiv.parentNode); | |
| exports.highlightBlock(codeDiv); | |
| }); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment