initial commit
This commit is contained in:
commit
d3fcd7f10c
3159 files changed
+349702
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
var Attrs = require('./attrs');
|
||||
|
||||
/**
|
||||
* Initialize a new `Mixin` with `name` and `block`.
|
||||
*
|
||||
* @param {String} name
|
||||
* @param {String} args
|
||||
* @param {Block} block
|
||||
* @api public
|
||||
*/
|
||||
|
||||
var Mixin = module.exports = function Mixin(name, args, block, call){
|
||||
this.name = name;
|
||||
this.args = args;
|
||||
this.block = block;
|
||||
this.attrs = [];
|
||||
this.attributeBlocks = [];
|
||||
this.call = call;
|
||||
};
|
||||
|
||||
// Inherit from `Attrs`.
|
||||
Mixin.prototype = Object.create(Attrs.prototype);
|
||||
Mixin.prototype.constructor = Mixin;
|
||||
|
||||
Mixin.prototype.type = 'Mixin';
|
||||
Reference in new issue
Block a user