mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
Fixing up Grunt file to watch for directories Exclude node modules folder from Jekyll built site
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
(function() {
|
|
var FillAvailable, OldValue, Value,
|
|
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;
|
|
|
|
OldValue = require('../old-value');
|
|
|
|
Value = require('../value');
|
|
|
|
FillAvailable = (function(superClass) {
|
|
extend(FillAvailable, superClass);
|
|
|
|
function FillAvailable() {
|
|
return FillAvailable.__super__.constructor.apply(this, arguments);
|
|
}
|
|
|
|
FillAvailable.names = ['fill-available'];
|
|
|
|
FillAvailable.prototype.replace = function(string, prefix) {
|
|
if (prefix === '-moz-') {
|
|
return string.replace(this.regexp(), '$1-moz-available$3');
|
|
} else {
|
|
return FillAvailable.__super__.replace.apply(this, arguments);
|
|
}
|
|
};
|
|
|
|
FillAvailable.prototype.old = function(prefix) {
|
|
if (prefix === '-moz-') {
|
|
return new OldValue(this.name, '-moz-available');
|
|
} else {
|
|
return FillAvailable.__super__.old.apply(this, arguments);
|
|
}
|
|
};
|
|
|
|
return FillAvailable;
|
|
|
|
})(Value);
|
|
|
|
module.exports = FillAvailable;
|
|
|
|
}).call(this);
|