Prtksxna has uploaded a new change for review.
https://gerrit.wikimedia.org/r/316802
Change subject: Add OO.ui.warnDeprecation method
......................................................................
Add OO.ui.warnDeprecation method
Change-Id: Ib87f2ef7cc643930c41ace0d464c2d5a8a1e39c0
---
M src/core.js
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/02/316802/1
diff --git a/src/core.js b/src/core.js
index 311e61e..8cdffff 100644
--- a/src/core.js
+++ b/src/core.js
@@ -247,6 +247,15 @@
};
/**
+ * Puts a console warning with provided message.
+ *
+ * @param {string} message
+ */
+OO.ui.warnDeprecation = function ( message ) {
+ console.warn( message );
+};
+
+/**
* Returns a function, that, when invoked, will only be triggered at most once
* during a given window of time. If called again during that window, it will
* wait until the window ends and then trigger itself again.
--
To view, visit https://gerrit.wikimedia.org/r/316802
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib87f2ef7cc643930c41ace0d464c2d5a8a1e39c0
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits