var foo = bar(); foo.void(); foo.void = bar; delete foo;