justify-items.js 1000 B

12345678910111213141516171819202122232425262728293031
  1. (function() {
  2. var Declaration, JustifyItems,
  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. Declaration = require('../declaration');
  6. JustifyItems = (function(superClass) {
  7. extend(JustifyItems, superClass);
  8. function JustifyItems() {
  9. return JustifyItems.__super__.constructor.apply(this, arguments);
  10. }
  11. JustifyItems.names = ['justify-items', 'grid-column-align'];
  12. JustifyItems.prototype.prefixed = function(prop, prefix) {
  13. return prefix + (prefix === '-ms-' ? 'grid-column-align' : prop);
  14. };
  15. JustifyItems.prototype.normalize = function(prop) {
  16. return 'justify-items';
  17. };
  18. return JustifyItems;
  19. })(Declaration);
  20. module.exports = JustifyItems;
  21. }).call(this);