transform-value.js 953 B

12345678910111213141516171819202122232425262728293031
  1. (function() {
  2. var TransformValue, Value,
  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. Value = require('../value');
  6. TransformValue = (function(_super) {
  7. __extends(TransformValue, _super);
  8. function TransformValue() {
  9. return TransformValue.__super__.constructor.apply(this, arguments);
  10. }
  11. TransformValue.names = ['transform'];
  12. TransformValue.prototype.replace = function(value, prefix) {
  13. if (prefix === '-ms-') {
  14. return value;
  15. } else {
  16. return TransformValue.__super__.replace.apply(this, arguments);
  17. }
  18. };
  19. return TransformValue;
  20. })(Value);
  21. module.exports = TransformValue;
  22. }).call(this);