It's a style service, not a styletron util.

This commit is contained in:
Timothy Farrell 2017-11-06 21:47:23 -06:00
parent 1288c1333c
commit d27affabfb
2 changed files with 3 additions and 3 deletions

View File

@ -5,9 +5,9 @@ import * as imageTag from '../context/manageImageTags.js';
import { ImageView } from './image.js';
import { AlbumView } from './album.js';
import { router, routeChanged } from '../services/router.js';
import { styled, el } from '../services/style.js';
import { LiveArray } from '../utils/livearray.js';
import { Watcher } from '../utils/watcher.js';
import { styled, el } from '../utils/styletron.js';
function uploadImages(evt) {
image.add(evt.currentTarget.files);

View File

@ -4,8 +4,8 @@ import { defineElement } from 'domvm';
const styletronSingleton = new Styletron();
export function injectStyle(styles) {
return _injectStyle(styletronSingleton, styles);
export function injectStyle(...styles) {
return _injectStyle(styletronSingleton, Object.assign({}, ...styles));
}
function isObject(obj) {