|
|
@ -297,8 +297,8 @@ $.fn.tab = function(parameters) { |
|
|
|
firstLoad = false; |
|
|
|
module.cache.add(tabPath, $tab.html()); |
|
|
|
module.activate.all(currentPath); |
|
|
|
$.proxy(settings.onTabInit, $tab)(currentPath, parameterArray, historyEvent); |
|
|
|
$.proxy(settings.onTabLoad, $tab)(currentPath, parameterArray, historyEvent); |
|
|
|
settings.onTabInit.call($tab, currentPath, parameterArray, historyEvent); |
|
|
|
settings.onTabLoad.call($tab, currentPath, parameterArray, historyEvent); |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
@ -308,9 +308,9 @@ $.fn.tab = function(parameters) { |
|
|
|
if( !module.cache.read(currentPath) ) { |
|
|
|
module.cache.add(currentPath, true); |
|
|
|
module.debug('First time tab loaded calling tab init'); |
|
|
|
$.proxy(settings.onTabInit, $tab)(currentPath, parameterArray, historyEvent); |
|
|
|
settings.onTabInit.call($tab, currentPath, parameterArray, historyEvent); |
|
|
|
} |
|
|
|
$.proxy(settings.onTabLoad, $tab)(currentPath, parameterArray, historyEvent); |
|
|
|
settings.onTabLoad.call($tab, currentPath, parameterArray, historyEvent); |
|
|
|
} |
|
|
|
} |
|
|
|
else if(tabPath.search('/') == -1 && tabPath !== '') { |
|
|
@ -325,7 +325,7 @@ $.fn.tab = function(parameters) { |
|
|
|
if( !module.cache.read(currentPath) ) { |
|
|
|
module.cache.add(currentPath, true); |
|
|
|
module.debug('First time tab loaded calling tab init'); |
|
|
|
$.proxy(settings.onTabInit, $tab)(currentPath, parameterArray, historyEvent); |
|
|
|
settings.onTabInit.call($tab, currentPath, parameterArray, historyEvent); |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
@ -355,8 +355,8 @@ $.fn.tab = function(parameters) { |
|
|
|
else { |
|
|
|
module.debug('Content loaded in background', tabPath); |
|
|
|
} |
|
|
|
$.proxy(settings.onTabInit, $tab)(tabPath, parameterArray, historyEvent); |
|
|
|
$.proxy(settings.onTabLoad, $tab)(tabPath, parameterArray, historyEvent); |
|
|
|
settings.onTabInit.call($tab, tabPath, parameterArray, historyEvent); |
|
|
|
settings.onTabLoad.call($tab, tabPath, parameterArray, historyEvent); |
|
|
|
}, |
|
|
|
urlData: { tab: fullTabPath } |
|
|
|
}, |
|
|
@ -373,7 +373,7 @@ $.fn.tab = function(parameters) { |
|
|
|
module.debug('Showing existing content', fullTabPath); |
|
|
|
module.content.update(tabPath, cachedContent); |
|
|
|
module.activate.tab(tabPath); |
|
|
|
$.proxy(settings.onTabLoad, $tab)(tabPath, parameterArray, historyEvent); |
|
|
|
settings.onTabLoad.call($tab, tabPath, parameterArray, historyEvent); |
|
|
|
} |
|
|
|
else if(existingRequest) { |
|
|
|
module.debug('Content is already loading', fullTabPath); |
|
|
|