I have an object called foo: 
function Foo(){
  this.conceal = function(){ ... };
};
and a method called toggleView, which iterates through a collection of foo and calls conceal() method on each instance: 
function toggleView(foos){
  for(a in foos){
    foos[a].conceal();
  }
}
and, of course, foos[a].conceal(); returns: conceal is not a function
 
     
    