diff options
Diffstat (limited to 'bootstrap/comments/frontend/cloneobject.js')
-rw-r--r-- | bootstrap/comments/frontend/cloneobject.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap/comments/frontend/cloneobject.js b/bootstrap/comments/frontend/cloneobject.js new file mode 100644 index 0000000..9b53d44 --- /dev/null +++ b/bootstrap/comments/frontend/cloneobject.js @@ -0,0 +1,5 @@ +// Returns a clone of an object (cloneobject.js) +HashOver.prototype.cloneObject = function (object) +{ + return JSON.parse (JSON.stringify (object)); +}; |