widgets: fix detached sync event: cache valid $body object when document is ready
This commit is contained in:
parent
7ff5ae801f
commit
688cdde501
1 changed files with 5 additions and 1 deletions
|
|
@ -22,6 +22,11 @@ var hashCode = function(s){
|
|||
return s.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0);
|
||||
}
|
||||
|
||||
var $body
|
||||
$(function() {
|
||||
$body = $('body')
|
||||
})
|
||||
|
||||
module.exports.tabs = function(data,parent,main,parentLabel){
|
||||
|
||||
if (main) {
|
||||
|
|
@ -43,7 +48,6 @@ module.exports.tabs = function(data,parent,main,parentLabel){
|
|||
|
||||
widgetManager.reset()
|
||||
|
||||
var $body = $('body')
|
||||
}
|
||||
|
||||
var main = main?'main ':'',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue