Jforrester has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/197835

Change subject: Update OOjs to v1.1.6
......................................................................

Update OOjs to v1.1.6

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.1.6/History.md

Change-Id: I7c1299c8049983746158a05e47a13f1f4bf7032f
---
M resources/lib/oojs/oojs.jquery.js
1 file changed, 17 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/35/197835/1

diff --git a/resources/lib/oojs/oojs.jquery.js 
b/resources/lib/oojs/oojs.jquery.js
index cf5a616..18dc564 100644
--- a/resources/lib/oojs/oojs.jquery.js
+++ b/resources/lib/oojs/oojs.jquery.js
@@ -1,12 +1,12 @@
 /*!
- * OOjs v1.1.5 optimised for jQuery
+ * OOjs v1.1.6 optimised for jQuery
  * https://www.mediawiki.org/wiki/OOjs
  *
  * Copyright 2011-2015 OOjs Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2015-02-26T01:51:06Z
+ * Date: 2015-03-19T00:42:55Z
  */
 ( function ( global ) {
 
@@ -436,6 +436,21 @@
 };
 
 /**
+ * Get the unique values of an array, removing duplicates
+ *
+ * @param {Array} arr Array
+ * @return {Array} Unique values in array
+ */
+oo.unique = function ( arr ) {
+       return arr.reduce( function ( result, current ) {
+               if ( result.indexOf( current ) === -1 ) {
+                       result.push( current );
+               }
+               return result;
+       }, [] );
+};
+
+/**
  * Compute the union (duplicate-free merge) of a set of arrays.
  *
  * Arrays values must be convertable to object keys (strings).

-- 
To view, visit https://gerrit.wikimedia.org/r/197835
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c1299c8049983746158a05e47a13f1f4bf7032f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to