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