main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
481 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | exports.addon = function (renderer) {
|
---|
4 | if (process.env.NODE_ENV !== 'production') {
|
---|
5 | require('./__dev__/warnOnMissingDependencies')('global', renderer, ['put']);
|
---|
6 | }
|
---|
7 |
|
---|
8 | var selector = renderer.selector;
|
---|
9 |
|
---|
10 | renderer.selector = function (parent, current) {
|
---|
11 | if (parent.indexOf(':global') > -1) parent = '';
|
---|
12 |
|
---|
13 | return selector(parent, current);
|
---|
14 | };
|
---|
15 |
|
---|
16 | renderer.global = function (css) {
|
---|
17 | return renderer.put('', css);
|
---|
18 | };
|
---|
19 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.