Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function find(what, current) {
var ret;
if (!current) {
current =;
for (var i=0; i < current.frames.length;i++) {
if (current.frames[i].name == what){
return current.frames[i];
ret = find(what,current.frames[i]);
if (ret) {
return ret;
return null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.