common.js: Migrate common.js module to use IIFE module style.

This module was exposing its functions as globals. This PR fixes
it use the IIFE module style that we use in our other modules.
This commit is contained in:
Harshit Bansal
2017-06-23 01:38:43 +05:30
committed by showell
parent f228700ef2
commit 6615f2f2e8
14 changed files with 35 additions and 28 deletions

View File

@@ -19,10 +19,10 @@ exports.message = function (response, status_box, cls, type) {
}
if (type === 'subscriptions-status') {
status_box.removeClass(status_classes).addClass(cls).children('#response')
status_box.removeClass(common.status_classes).addClass(cls).children('#response')
.text(response).stop(true).fadeTo(0, 1);
} else {
status_box.removeClass(status_classes).addClass(cls)
status_box.removeClass(common.status_classes).addClass(cls)
.text(response).stop(true).fadeTo(0, 1);
}