function(element, property, lValue, rValue) {
      var ltr = !($document[0].dir == 'rtl' || $document[0].body.dir == 'rtl');

      // If accessor
      if (arguments.length == 0) return ltr ? 'ltr' : 'rtl';

      // If mutator
      var elem = angular.element(element);

      if (ltr && angular.isDefined(lValue)) {
        elem.css(property, validateCssValue(lValue));
      }
      else if (!ltr && angular.isDefined(rValue)) {
        elem.css(property, validateCssValue(rValue));
      }
    }
function(element, property, lValue, rValue) {
      var ltr = !($document[0].dir == 'rtl' || $document[0].body.dir == 'rtl');

      // If accessor
      if (arguments.length == 0) return ltr ? 'ltr' : 'rtl';

      // If mutator
      var elem = angular.element(element);

      if (ltr && angular.isDefined(lValue)) {
        elem.css(property, validateCssValue(lValue));
      }
      else if (!ltr && angular.isDefined(rValue)) {
        elem.css(property, validateCssValue(rValue));
      }
    }
function ( element , property , lValue , rValue ) { var ltr = ! ( $document [ 0 ] . dir == 'rtl' || $document [ 0 ] . body . dir == 'rtl' ) ; // If accessor if ( arguments . length == 0 ) return ltr ? 'ltr' : 'rtl' ; // If mutator var elem = angular . element ( element ) ; if ( ltr && angular . isDefined ( lValue ) ) { elem . css ( property , validateCssValue ( lValue ) ) ; } else if ( ! ltr && angular . isDefined ( rValue ) ) { elem . css ( property , validateCssValue ( rValue ) ) ; } }
Bi-directional accessor/mutator used to easily update an element's
property based on the current 'dir'ectional value.
Bi - directional accessor / mutator used to easily update an element s property based on the current dir ectional value .
Returns the value of the specified CSS property.