summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/extensions
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-30 21:55:51 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-03 22:51:56 +0100
commitbd60a4ed40ca52fd23e027de8f30e2f094eb6e5c (patch)
treedc64b73ebbcb66bcef325d89dca5b08f5fae24be /app/assets/javascripts/extensions
parentae067ee322e6702fb5ef0fd4f0cc4d4d5106cbde (diff)
downloadgitlab-ce-bd60a4ed40ca52fd23e027de8f30e2f094eb6e5c.tar.gz
Make notes JS know which notes are new in a request
Diffstat (limited to 'app/assets/javascripts/extensions')
-rw-r--r--app/assets/javascripts/extensions/array.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/extensions/array.js b/app/assets/javascripts/extensions/array.js
new file mode 100644
index 00000000000..7fccc9c9d5f
--- /dev/null
+++ b/app/assets/javascripts/extensions/array.js
@@ -0,0 +1,7 @@
+Array.prototype.first = function() {
+ return this[0];
+}
+
+Array.prototype.last = function() {
+ return this[this.length-1];
+} \ No newline at end of file