Sha256: a6be665d1cb8ffa629a2ad104650fae5e0313e0b3b64e1ee8790034947e3e126
Contents?: true
Size: 802 Bytes
Versions: 67
Compression:
Stored size: 802 Bytes
Contents
/*! * Stylus - Media * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var Node = require('./node') , nodes = require('./'); /** * Initialize a new `Media` with the given `val` * * @param {String} val * @api public */ var Media = module.exports = function Media(val){ Node.call(this); this.val = val; }; /** * Inherit from `Node.prototype`. */ Media.prototype.__proto__ = Node.prototype; /** * Clone this node. * * @return {Media} * @api public */ Media.prototype.clone = function(){ var clone = new Media(this.val); clone.block = this.block.clone(); return clone; }; /** * Return @media "val". * * @return {String} * @api public */ Media.prototype.toString = function(){ return '@media ' + this.val; };
Version data entries
67 entries across 53 versions & 2 rubygems