BVB Source Codes

reactide Show border-radius.js Source code

Return Download reactide: download border-radius.js Source code - Download reactide Source code - Type:.js
  1. (function() {
  2.   var BorderRadius, Declaration,
  3.     extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  4.     hasProp = {}.hasOwnProperty;
  5.  
  6.   Declaration = require('../declaration');
  7.  
  8.   BorderRadius = (function(superClass) {
  9.     var hor, i, j, len, len1, mozilla, normal, ref, ref1, ver;
  10.  
  11.     extend(BorderRadius, superClass);
  12.  
  13.     function BorderRadius() {
  14.       return BorderRadius.__super__.constructor.apply(this, arguments);
  15.     }
  16.  
  17.     BorderRadius.names = ['border-radius'];
  18.  
  19.     BorderRadius.toMozilla = {};
  20.  
  21.     BorderRadius.toNormal = {};
  22.  
  23.     ref = ['top', 'bottom'];
  24.     for (i = 0, len = ref.length; i < len; i++) {
  25.       ver = ref[i];
  26.       ref1 = ['left', 'right'];
  27.       for (j = 0, len1 = ref1.length; j < len1; j++) {
  28.         hor = ref1[j];
  29.         normal = "border-" + ver + "-" + hor + "-radius";
  30.         mozilla = "border-radius-" + ver + hor;
  31.         BorderRadius.names.push(normal);
  32.         BorderRadius.names.push(mozilla);
  33.         BorderRadius.toMozilla[normal] = mozilla;
  34.         BorderRadius.toNormal[mozilla] = normal;
  35.       }
  36.     }
  37.  
  38.     BorderRadius.prototype.prefixed = function(prop, prefix) {
  39.       if (prefix === '-moz-') {
  40.         return prefix + (BorderRadius.toMozilla[prop] || prop);
  41.       } else {
  42.         return BorderRadius.__super__.prefixed.apply(this, arguments);
  43.       }
  44.     };
  45.  
  46.     BorderRadius.prototype.normalize = function(prop) {
  47.       return BorderRadius.toNormal[prop] || prop;
  48.     };
  49.  
  50.     return BorderRadius;
  51.  
  52.   })(Declaration);
  53.  
  54.   module.exports = BorderRadius;
  55.  
  56. }).call(this);
  57.  
downloadborder-radius.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top