mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Added node-modules
This commit is contained in:
36
node_modules/jade/lib/nodes/text.js
generated
vendored
Normal file
36
node_modules/jade/lib/nodes/text.js
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
/*!
|
||||
* Jade - nodes - Text
|
||||
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var Node = require('./node');
|
||||
|
||||
/**
|
||||
* Initialize a `Text` node with optional `line`.
|
||||
*
|
||||
* @param {String} line
|
||||
* @api public
|
||||
*/
|
||||
|
||||
var Text = module.exports = function Text(line) {
|
||||
this.val = '';
|
||||
if ('string' == typeof line) this.val = line;
|
||||
};
|
||||
|
||||
/**
|
||||
* Inherit from `Node`.
|
||||
*/
|
||||
|
||||
Text.prototype.__proto__ = Node.prototype;
|
||||
|
||||
/**
|
||||
* Flag as text.
|
||||
*/
|
||||
|
||||
Text.prototype.isText = true;
|
Reference in New Issue
Block a user