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";
/*global define, app, socket, ajaxify, RELATIVE_PATH */
'use strict';
/*global define, app, socket, ajaxify */
define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
define('admin/settings', ['uploader'], function(uploader) {
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-header').each(function() {
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();
});

Loading…
Cancel
Save