barOnClass var renamed to barOnCls