Requires

Provides

BorderRadius.js

Set border radius for all the browsers

License:
Public domain (http://unlicense.org).
  1. 20
  2. 21
  3. 22
  4. 23
  5. 24
  6. 25
  7. 26
  8. 27
  9. 28
  10. 29
  11. 30
  12. 31
  13. 32
  14. 33
  15. 34
  16. 35
  17. 36
  18. 37
  19. 38
  20. 39
  21. 40
  22. 41
  23. 42
(function() { if (Browser.safari || Browser.chrome) var properties = ['webkitBorderTopLeftRadius', 'webkitBorderTopRightRadius', 'webkitBorderBottomRightRadius', 'webkitBorderBottomLeftRadius']; else if (Browser.firefox) var properties = ['MozBorderRadiusTopleft', 'MozBorderRadiusTopright', 'MozBorderRadiusBottomright', 'MozBorderRadiusBottomleft'] else var properties = ['borderRadiusTopLeft', 'borderRadiusTopRight', 'borderRadiusBottomRight', 'borderRadiusBottomLeft'] Element.Properties.borderRadius = { set: function(radius){ if (radius.each) radius.each(function(value, i) { this.style[properties[i]] = value + 'px'; }, this); }, get: function(){ } }; })();