Commit ec591957 authored by Julien Cigar's avatar Julien Cigar
Browse files

better typeOf (removed the [Object part)

parent 3b64fc16
...@@ -633,12 +633,12 @@ ...@@ -633,12 +633,12 @@
Yeti.Tools = new Object(); Yeti.Tools = new Object();
/* Yeti.Tools.protoStr /* Yeti.Tools.typeOf
* Returns a detailed text of the constructor * Returns a detailed text of the constructor
*/ */
Yeti.Tools.protoStr = function(obj) { Yeti.Tools.typeOf = function(obj) {
return Object().toString.call(obj); return Object().toString.call(obj).match(/(\w+)/ig)[1];
} }
/* Yeti.Tools.Serializer /* Yeti.Tools.Serializer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment