function posBar(pos) {
        /* jshint validthis:true */
        if (this.bar) {
          var was = $(this.bar).css(this.origin.pos),
            will = +pos + 'px';

          if (will && will != was) {
            $(this.bar).css(this.origin.pos, will);
          }
        }
      }
// Updating top or left bar position
Updating top or left bar position
Updating top or left bar position
function posBar(pos) {
        if (this.bar) {
          var was = $(this.bar).css(this.origin.pos),
            will = +pos + 'px';
          if (will && will != was) {
            $(this.bar).css(this.origin.pos, will);
          }
        }
      }
function posBar ( pos ) { if ( this . bar ) { var was = $ ( this . bar ) . css ( this . origin . pos ) , will = + pos + 'px' ; if ( will && will != was ) { $ ( this . bar ) . css ( this . origin . pos , will ) ; } } }
Updating top or left bar position
Updating top or left bar position
/* jshint validthis:true */