提交 9366ba9b 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/loadCss' into 'wrdp'

Update o2.js 修复loadCss错误

See merge request o2oa/o2oa!5018
......@@ -772,7 +772,7 @@ if (window.Promise && !Promise.any){
var _loadCssText = function(cssText, options, callback){
var op = (_typeOf(options)==="object") ? _getCssOptions(options) : _getCssOptions(null);
var cb = (_typeOf(options)==="function") ? options : callback;
var uuid = op.uuid || "css"+_uuid();
var uuid = options.uuid || "css"+_uuid();
if (cssText){
if (op.dom) _parseDom(op.dom, function(node){ if (node.className.indexOf(uuid) == -1) node.className += ((node.className) ? " "+uuid : uuid);}, op.doc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册