From 91f24bd88b9aaf040eeea78024e1e2d786219a2b Mon Sep 17 00:00:00 2001 From: mwcz Date: Fri, 15 Mar 2013 14:53:35 -0300 Subject: [PATCH] fix javascript `object` function snippet --- snippets/javascript.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/javascript.snippets b/snippets/javascript.snippets index cf543e8..2901587 100644 --- a/snippets/javascript.snippets +++ b/snippets/javascript.snippets @@ -156,7 +156,7 @@ snippet sing } # Crockford's object function snippet obj - object(o) { + function object(o) { function F() {} F.prototype = o; return new F();