Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
ec591957
Commit
ec591957
authored
Nov 29, 2012
by
Julien Cigar
Browse files
better typeOf (removed the [Object part)
parent
3b64fc16
Changes
1
Show whitespace changes
Inline
Side-by-side
core.js
View file @
ec591957
...
...
@@ -633,12 +633,12 @@
Yeti
.
Tools
=
new
Object
();
/* Yeti.Tools.
protoStr
/* Yeti.Tools.
typeOf
* Returns a detailed text of the constructor
*/
Yeti
.
Tools
.
protoStr
=
function
(
obj
)
{
return
Object
().
toString
.
call
(
obj
);
Yeti
.
Tools
.
typeOf
=
function
(
obj
)
{
return
Object
().
toString
.
call
(
obj
)
.
match
(
/
(\w
+
)
/ig
)[
1
]
;
}
/* Yeti.Tools.Serializer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment