This file contains 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 walked = []; | |
var searchHaystack = function(haystack, needle, path, exactEquals) { | |
//dumb truthiness handling | |
exactEquals = exactEquals ? true : false; | |
if(typeof haystack != "object") { | |
console.warn("non-object haystack at " + path.join(".")); | |
return [false, null]; |
This file contains 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
/** | |
* Minimum set up for a revealing module pattern jQuery plugin | |
* | |
* This is a bare plugin that uses the revealing module pattern to attach | |
* public and private vars and methods to a jQuery selector. | |
* | |
* Example: | |
* | |
* $('#menu').collapsible().init(); | |
* $('#menu').collapsible().open(); |