mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +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
|
* @brief Get one application
|
||||||
*/
|
*/
|
||||||
getApp : function(indexOrName) {
|
getApp : function(indexOrName) {
|
||||||
|
indexOrName = (indexOrName||'').toLowerCase();
|
||||||
if (typeof _apps[indexOrName] != 'undefined') {
|
if (typeof _apps[indexOrName] != 'undefined') {
|
||||||
return _apps[indexOrName];
|
return _apps[indexOrName];
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -141,12 +142,8 @@ _app_base = {
|
||||||
var fn = function(s,p){ return oPlugin[key](s,p) };
|
var fn = function(s,p){ return oPlugin[key](s,p) };
|
||||||
fn._fn = val;
|
fn._fn = val;
|
||||||
|
|
||||||
if (RegExp.$2) { // is hooker?
|
if (!$.isArray(msgs[RegExp.$1])) msgs[RegExp.$1] = [];
|
||||||
if (!$.isArray(msgs[RegExp.$1])) msgs[RegExp.$1] = [];
|
msgs[RegExp.$1].push(fn);
|
||||||
msgs[RegExp.$1].push(fn);
|
|
||||||
} else { // register only one main function
|
|
||||||
msgs[RegExp.$1] = fn;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// set the application
|
// set the application
|
||||||
|
|
@ -296,6 +293,7 @@ function getTypeBase() {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.xe = $.extend(_app_base, _xe_base);
|
window.xe = $.extend(_app_base, _xe_base);
|
||||||
|
window.xe.lang = {}; // language repository
|
||||||
|
|
||||||
// domready event
|
// domready event
|
||||||
$(function(){ xe.broadcast(xe, 'ONREADY'); });
|
$(function(){ xe.broadcast(xe, 'ONREADY'); });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue