No Description

appearance.js 831B

123456789101112131415161718192021222324252627
  1. (function() {
  2. var Appearance, 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. Declaration = require('../declaration');
  6. Appearance = (function(superClass) {
  7. extend(Appearance, superClass);
  8. function Appearance() {
  9. return Appearance.__super__.constructor.apply(this, arguments);
  10. }
  11. Appearance.names = ['appearance'];
  12. Appearance.prototype.check = function(decl) {
  13. return decl.value.toLowerCase() === 'none';
  14. };
  15. return Appearance;
  16. })(Declaration);
  17. module.exports = Appearance;
  18. }).call(this);