Update OOjs UI to v0.1.0-pre (e6edd86d37)
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 2 May 2014 17:42:57 +0000 (10:42 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Fri, 2 May 2014 17:42:57 +0000 (10:42 -0700)
New changes:
e1c2ae8 [BREAKING CHANGE] Cleanup widget focus/select/clear methods

Change-Id: I7214257bcd33b400df4f7b1d8c2be317936f0cff

resources/lib/oojs-ui/oojs-ui.js
resources/lib/oojs-ui/oojs-ui.svg.css

index bc8522e..665b05d 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (301887f487)
+ * OOjs UI v0.1.0-pre (e6edd86d37)
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2014 OOjs Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: Thu May 01 2014 12:36:15 GMT-0700 (PDT)
+ * Date: Fri May 02 2014 10:42:43 GMT-0700 (PDT)
  */
 ( function ( OO ) {
 
@@ -5566,6 +5566,16 @@ OO.ui.InputWidget.prototype.setDisabled = function ( state ) {
        }
        return this;
 };
+
+/**
+ * Focus the input.
+ *
+ * @chainable
+ */
+OO.ui.InputWidget.prototype.focus = function () {
+       this.$input.focus();
+       return this;
+};
 /**
  * Checkbox widget.
  *
@@ -7798,20 +7808,6 @@ OO.ui.SearchWidget.prototype.getQuery = function () {
        return this.query;
 };
 
-/**
- * Reset the widget to initial value.
- */
-OO.ui.SearchWidget.prototype.clear = function () {
-       this.query.setValue( '' );
-};
-
-/**
- * Focus the query input.
- */
-OO.ui.SearchWidget.prototype.focus = function () {
-       this.query.$input[0].focus();
-};
-
 /**
  * Get the results list.
  *
@@ -8022,6 +8018,16 @@ OO.ui.TextInputWidget.prototype.popPending = function () {
 
        return this;
 };
+
+/**
+ * Select the contents of the input.
+ *
+ * @chainable
+ */
+OO.ui.TextInputWidget.prototype.select = function () {
+       this.$input.select();
+       return this;
+};
 /**
  * Menu for a text input widget.
  *
index 8109bf6..a330f57 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (301887f487)
+ * OOjs UI v0.1.0-pre (e6edd86d37)
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2014 OOjs Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: Thu May 01 2014 12:36:15 GMT-0700 (PDT)
+ * Date: Fri May 02 2014 10:42:43 GMT-0700 (PDT)
  */
 
 /* Textures */