: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
function init(container) {
floatWnd: container.find('.float-wnd'),
showDropMenu: function(e) {
while(!el.hasClass('toggle')) {
el = $(el[0].parentNode);
var menu = el.find('.menu');
if(menu.hasClass('hidden')) {
container.find('.ctrl .fnavbar .menu').addClass('hidden');
menu.removeClass('hidden');
hideDropMenu: function() {
container.find('.ctrl .fnavbar .menu').addClass('hidden');
pickFloatWnd: function(e) {
instance.binds.dropFloatWnd();
moveFloatWnd: function(e) {
x: e.pageX-instance.pos.x,
y: e.pageY-instance.pos.y
x: parseInt(instance.floatWnd.css('left')),
y: parseInt(instance.floatWnd.css('top'))
instance.floatWnd.css('left', old.x+dv.x+'px').css('top', old.y+dv.y+'px');
dropFloatWnd: function() {
var ns = container.find('.js-center');
for(var i=0; i<ns.length; ++i) {
var n = $(ns[i]), parentWidth = $(ns[i].parentNode).width(), width = n.width();
n.css('left', 0.5*(parentWidth-width)+'px');
instance.binds.jsCenter();
linkLoaded: function(link) {
instance.binds.jsCenter();
container.find('.ctrl .fnavbar .fnav .toggle').off('click', instance.binds.showDropMenu);
$(container[0].ownerDocument).off('click', instance.binds.hideDropMenu);
$(container[0].ownerDocument).off('mousemove', instance.binds.moveFloatWnd);
$(container[0].ownerDocument).off('mouseup', instance.binds.dropFloatWnd);
instance.floatWnd.find('.header').off('mousedown', instance.binds.pickFloatWnd);
$(container[0].ownerDocument.defaultView).off('resize', instance.binds.jsCenter);
container.find('.ctrl .fnavbar .fnav .toggle').on('click', instance.binds.showDropMenu);
$(container[0].ownerDocument).on('click', instance.binds.hideDropMenu);
$(container[0].ownerDocument).on('mousemove', instance.binds.moveFloatWnd);
$(container[0].ownerDocument).on('mouseup', instance.binds.dropFloatWnd);
instance.floatWnd.find('.header').on('mousedown', instance.binds.pickFloatWnd);
$(container[0].ownerDocument.defaultView).on('resize', instance.binds.jsCenter);
instance.binds.jsCenter();
console.error('jQuery is not found');