fix javascript object
function snippet
This commit is contained in:
parent
c85575e50d
commit
91f24bd88b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user