mirror of
https://github.com/thangisme/notes.git
synced 2024-06-29 14:15:25 +00:00
30 lines
923 B
JavaScript
30 lines
923 B
JavaScript
(function() {
|
|
var Declaration, Filter,
|
|
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; },
|
|
hasProp = {}.hasOwnProperty;
|
|
|
|
Declaration = require('../declaration');
|
|
|
|
Filter = (function(superClass) {
|
|
extend(Filter, superClass);
|
|
|
|
function Filter() {
|
|
return Filter.__super__.constructor.apply(this, arguments);
|
|
}
|
|
|
|
Filter.names = ['filter'];
|
|
|
|
Filter.prototype.check = function(decl) {
|
|
var v;
|
|
v = decl.value;
|
|
return v.toLowerCase().indexOf('alpha(') === -1 && v.indexOf('DXImageTransform.Microsoft') === -1 && v.indexOf('data:image/svg+xml') === -1;
|
|
};
|
|
|
|
return Filter;
|
|
|
|
})(Declaration);
|
|
|
|
module.exports = Filter;
|
|
|
|
}).call(this);
|