Created
February 26, 2011 10:26
-
-
Save nazomikan/845094 to your computer and use it in GitHub Desktop.
newつけ忘れ対策
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hoge() { | |
if (!(this instanceof hoge)) { | |
return new hoge(); | |
} | |
//以下クラスの実装 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment