Browse files

add .mixin -> .mixins alias

  • Loading branch information...
1 parent db69c3e commit 46b7402510a3fc6e82d7e1b2df8db566e2d5751a @tj tj committed Dec 7, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/plugins/mixin.js
  2. +1 −1 lib/rework.js
View
1 lib/plugins/mixin.js
@@ -10,6 +10,7 @@ var utils = require('../utils');
*/
module.exports = function(mixins) {
+ if (!mixins) throw new Error('mixins object required');
return function(style, rework){
style.rules.forEach(function(rule){
if (!rule.declarations) return;
View
2 lib/rework.js
@@ -79,7 +79,7 @@ Rework.prototype.toString = function(options){
*/
exports.media = require('./plugins/media');
-exports.mixin = require('./plugins/mixin');
+exports.mixin = exports.mixins = require('./plugins/mixin');
exports.prefix = require('./plugins/prefix');
exports.colors = require('./plugins/colors');
exports.extend = require('./plugins/extend');

0 comments on commit 46b7402

Please sign in to comment.