Commit 10b03b71 authored by Leo Iannacone's avatar Leo Iannacone

added clone object (via JSON) function

parent d5b90d98
......@@ -75,5 +75,10 @@ var Utils = {
get_status_icon_html: function (status_data) {
info = Utils.get_status_icon_and_class(status_data)
return '<span class="icon glyphicon glyphicon-' + info.icon + '"></span>'
},
// clone an object via JSON
clone: function (object) {
return JSON.parse(JSON.stringify(object));
}
}
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