re-added deprecation notice for Settings.init, closes #4844

v1.18.x
Julian Lam 9 years ago
parent 9283411150
commit d58657178f

@ -1,9 +1,14 @@
"use strict"; 'use strict';
/*global define, app, socket, ajaxify, RELATIVE_PATH */ /*global define, app, socket, ajaxify */
define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) { define('admin/settings', ['uploader'], function(uploader) {
var Settings = {}; var Settings = {};
Settings.init = function() {
console.warn('[deprecation] require(\'admin/settings\').init() has been deprecated, please call require(\'admin/settings\').prepare() directly instead.');
Settings.prepare();
};
Settings.populateTOC = function() { Settings.populateTOC = function() {
$('.settings-header').each(function() { $('.settings-header').each(function() {
var header = $(this).text(), var header = $(this).text(),
@ -55,7 +60,7 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
} }
} }
revertBtn.off('click').on('click', function(e) { revertBtn.off('click').on('click', function() {
ajaxify.refresh(); ajaxify.refresh();
}); });

Loading…
Cancel
Save