#18544366 JAF에서 동일한 API가 두번 호출되지 않는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7035 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-12-14 01:44:50 +00:00
parent fc62786db3
commit 2320709f8c

View file

@ -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'); });