mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
#18544366 JAF에서 동일한 API가 두번 호출되지 않는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7035 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fc62786db3
commit
2320709f8c
1 changed files with 4 additions and 6 deletions
|
|
@ -59,6 +59,7 @@ _xe_base = {
|
|||
* @brief Get one application
|
||||
*/
|
||||
getApp : function(indexOrName) {
|
||||
indexOrName = (indexOrName||'').toLowerCase();
|
||||
if (typeof _apps[indexOrName] != 'undefined') {
|
||||
return _apps[indexOrName];
|
||||
} else {
|
||||
|
|
@ -141,12 +142,8 @@ _app_base = {
|
|||
var fn = function(s,p){ return oPlugin[key](s,p) };
|
||||
fn._fn = val;
|
||||
|
||||
if (RegExp.$2) { // is hooker?
|
||||
if (!$.isArray(msgs[RegExp.$1])) msgs[RegExp.$1] = [];
|
||||
msgs[RegExp.$1].push(fn);
|
||||
} else { // register only one main function
|
||||
msgs[RegExp.$1] = fn;
|
||||
}
|
||||
if (!$.isArray(msgs[RegExp.$1])) msgs[RegExp.$1] = [];
|
||||
msgs[RegExp.$1].push(fn);
|
||||
});
|
||||
|
||||
// set the application
|
||||
|
|
@ -296,6 +293,7 @@ function getTypeBase() {
|
|||
}
|
||||
|
||||
window.xe = $.extend(_app_base, _xe_base);
|
||||
window.xe.lang = {}; // language repository
|
||||
|
||||
// domready event
|
||||
$(function(){ xe.broadcast(xe, 'ONREADY'); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue