annotate dom/src/js/css.js @ 32:1dc2fd263b90

Merge
author cin
date Wed, 27 Jun 2018 04:35:04 +0300
parents acdcdf1a8d21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
1 define(["./inject"], function (inject) {
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
2 return {
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
3 load: function (id, require, cb) {
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
4 var url = require.toUrl(id);
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
5 inject.injectStylesheet(url).then(function () {
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
6 cb();
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
7 });
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
8 }
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
9 };
c2a7d21175ce Added css injection plugin, implab/dom/css!<css-path>
cin
parents:
diff changeset
10 });