Bug 931032 - Don't reference variables before they are defined; r=jmaher