view src/implab/dom/css.js @ 25:c2a7d21175ce

Added css injection plugin, implab/dom/css!<css-path>
author cin
date Fri, 08 Dec 2017 04:31:43 +0300
parents
children
line wrap: on
line source

define(["./inject"], function (inject) {
    return {
        load: function (id, require, cb) {
            var url = require.toUrl(id);
            inject.injectStylesheet(url).then(function () {
                cb();
            });
        }
    };
});