Removes $attachNativeObject