flex-wrap.js 965 B

123456789101112131415161718192021222324252627282930313233
  1. (function() {
  2. var Declaration, FlexWrap, flexSpec,
  3. __extends = 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. flexSpec = require('./flex-spec');
  6. Declaration = require('../declaration');
  7. FlexWrap = (function(_super) {
  8. __extends(FlexWrap, _super);
  9. function FlexWrap() {
  10. return FlexWrap.__super__.constructor.apply(this, arguments);
  11. }
  12. FlexWrap.names = ['flex-wrap'];
  13. FlexWrap.prototype.set = function(decl, prefix) {
  14. var spec;
  15. spec = flexSpec(prefix)[0];
  16. if (spec !== 2009) {
  17. return FlexWrap.__super__.set.apply(this, arguments);
  18. }
  19. };
  20. return FlexWrap;
  21. })(Declaration);
  22. module.exports = FlexWrap;
  23. }).call(this);