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
snippet obj
object(o) {
function object(o) {
function F() {}
F.prototype = o;
return new F();