This was an application by Peter A. Berg to be substituted as plaintiff and respondent in this case in place of John S. Baker. The action was brought in the lower court by John S-. Baker to restrain the continuance of a public nuisance in the city of Tacoma. The complaint alleges in substance that the plaintiff was the owner of three certain lots of land in Tacoma adjoining property upon which a bawdy house was being maintained by defendants, and that, by reason of the proximity of said *678bawdy house to his said lots, plaintiff was specially injured in a manner different from the general public. Upon a hearing in the lower court defendants’ demurrer to the complaint was overruled, and an injunction pendente lite was issued. Prom the order overruling this demurrer and granting the restraining order, the defendant appealed to this court. After the appeal had been taken, the respondent Baker sold all his interest in and to the lots owned by him, and described in the complaint, to the applicant, Peter A. Berg. Mr. Berg now moves this court to be substituted as respondent in place of Mr. Baker.
We think the application should be granted. § 4824, Bal. Code, provides that every action shall be prosecuted in the name of the real party in interest. § 4837 provides that no action shall abate by the transfer of any interest therein, if the cause of action survive or continue, but the court may allow the action to be continued by the successor in interest. Under code provisions similar to our own, substitution has been allowed in the following cases: McKinnis v. Scottish Am. Mortgage Co., 55 Kan. 259, 39 Pac. 1018; Keough v. McNitt, 7 Minn. 29 ; and Nickerson v. Crawford, 11 N. Y. Supp. 503.
The respondent, having sold and assigned all of his right, title, and interest in and to the property affected by the nuisance, has no further special interest' in the case. The fact that he was the owner of the property described, and that this property was specially affected differently from other property in the community, gave him standing to maintain the action in a court of equity. Without these facts appearing, he was not entitled to maintain the action for injunctive relief. When he parted with the property, he parted with'his right to maintain the action. The cause of action, however, continued with the property. The new owner has the same right to maintain the action as the old *679owner had. When the applicant purchased the property, he succeeded to all the rights of the respondent, and, under the plain terms of the statute above named, is entitled to be substituted as respondent and to have exclusive control of the litigation. The application is therefore granted, and the applicant is substituted as respondent in place of John S. Baker.