remove ajaxify.widgets.reposition

This commit is contained in:
Baris Usakli
2017-07-10 14:05:48 -04:00
parent bece6808a2
commit 4e7447c9d6

View File

@@ -3,16 +3,6 @@
(function (ajaxify) {
ajaxify.widgets = {};
ajaxify.widgets.reposition = function (location) {
$('body [has-widget-class]').each(function () {
var $this = $(this);
if ($this.attr('has-widget-target') === location) {
$this.removeClass();
$this.addClass($this.attr('has-widget-class'));
}
});
};
ajaxify.widgets.render = function (template, callback) {
callback = callback || function () {};
@@ -56,7 +46,6 @@
if (widgetsAtLocation.length) {
area.removeClass('hidden');
ajaxify.widgets.reposition(location);
}
});