Skip to content
Browse files

instanceof check

  • Loading branch information...
1 parent 4486211 commit 50ea38762f4e1dc87e5272e9caa3eee90b7b95be @substack committed Dec 1, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 { → lib}/iw.js
View
1 iw.js → lib/iw.js
@@ -7,6 +7,7 @@ module.exports = function (iface) {
};
function IW (iface) {
+ if (!(this instanceof IW)) return new IW(iface);
this.iface = iface;
}

0 comments on commit 50ea387

Please sign in to comment.
Something went wrong with that request. Please try again.