summaryrefslogtreecommitdiff
path: root/static/js/lib.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/lib.js')
-rw-r--r--static/js/lib.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/static/js/lib.js b/static/js/lib.js
new file mode 100644
index 0000000..43b0dc8
--- /dev/null
+++ b/static/js/lib.js
@@ -0,0 +1,6 @@
+jQuery.fn.extend({
+ // copies an object and removes 'id' and 'class' values
+ copy: function() {
+ return this.clone().removeAttr("id").removeAttr("class");
+ }
+});