complete redesign: use nodejs on server instead of php - documentation to be updated
This commit is contained in:
18
nodejs/node_modules/stylus/lib/functions/operate.js
generated
vendored
Normal file
18
nodejs/node_modules/stylus/lib/functions/operate.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var utils = require('../utils');
|
||||
|
||||
/**
|
||||
* Perform `op` on the `left` and `right` operands.
|
||||
*
|
||||
* @param {String} op
|
||||
* @param {Node} left
|
||||
* @param {Node} right
|
||||
* @return {Node}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function operate(op, left, right){
|
||||
utils.assertType(op, 'string', 'op');
|
||||
utils.assertPresent(left, 'left');
|
||||
utils.assertPresent(right, 'right');
|
||||
return left.operate(op.val, right);
|
||||
};
|
Reference in New Issue
Block a user