fix javascript object function snippet

This commit is contained in:
mwcz 2013-03-15 14:53:35 -03:00
parent c85575e50d
commit 91f24bd88b

View File

@ -156,7 +156,7 @@ snippet sing
} }
# Crockford's object function # Crockford's object function
snippet obj snippet obj
object(o) { function object(o) {
function F() {} function F() {}
F.prototype = o; F.prototype = o;
return new F(); return new F();