fix scoped style bug
This commit is contained in:
parent
669c67b969
commit
7b141d33ca
|
@ -1511,7 +1511,10 @@ Nuclear._mixObj = function (obj) {
|
|||
};
|
||||
|
||||
obj._nuclearSetStyleData=function(){
|
||||
this.node&&this.node.querySelector('style').setAttribute('data-nuclearId',this._ncInstanceId);
|
||||
if(this.node&&this.node.querySelector){
|
||||
var style=this.node.querySelector('style');
|
||||
style&&style.setAttribute('data-nuclearId',this._ncInstanceId);
|
||||
}
|
||||
}
|
||||
|
||||
obj._nuclearRender = function (item) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -142,7 +142,10 @@ Nuclear._mixObj = function (obj) {
|
|||
};
|
||||
|
||||
obj._nuclearSetStyleData=function(){
|
||||
this.node&&this.node.querySelector('style').setAttribute('data-nuclearId',this._ncInstanceId);
|
||||
if(this.node&&this.node.querySelector){
|
||||
var style=this.node.querySelector('style');
|
||||
style&&style.setAttribute('data-nuclearId',this._ncInstanceId);
|
||||
}
|
||||
}
|
||||
|
||||
obj._nuclearRender = function (item) {
|
||||
|
|
Loading…
Reference in New Issue