diff options
| author | john.j.camilleri <john.j.camilleri@chalmers.se> | 2012-11-22 12:45:20 +0000 |
|---|---|---|
| committer | john.j.camilleri <john.j.camilleri@chalmers.se> | 2012-11-22 12:45:20 +0000 |
| commit | bac6b7fe6438d06fab3451263d4d94e9055f6f88 (patch) | |
| tree | abcb68ac3df3fa2e17fd3ba38cc9f5f899c9b913 /src/www/js | |
| parent | 486a510611b72d4daf551f30156fa59608d099af (diff) | |
Syntax editor: can now load minibar (in-place) from a linearised tree
Diffstat (limited to 'src/www/js')
| -rw-r--r-- | src/www/js/support.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/www/js/support.js b/src/www/js/support.js index 9687ea8a1..41b736855 100644 --- a/src/www/js/support.js +++ b/src/www/js/support.js @@ -20,6 +20,15 @@ if(!Array.isArray) { }; } +// Create a clone of an array +// http://davidwalsh.name/javascript-clone-array +// Note that iterating over an array with for...in will include "clone" as a key! +// if(!Array.clone) { +// Array.prototype.clone = function() { +// return this.slice(0); +// }; +// } + /* --- JSONP ---------------------------------------------------------------- */ // Inspired by the function jsonp from |
