mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
#18544877 Js App에 등록된 BEFORE, AFTER API가 동작하지 않는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7039 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ddd38183de
commit
2416ab790c
1 changed files with 2 additions and 3 deletions
|
|
@ -138,7 +138,6 @@ _app_base = {
|
||||||
$.each(oPlugin, function(key, val){
|
$.each(oPlugin, function(key, val){
|
||||||
if (!$.isFunction(val)) return true;
|
if (!$.isFunction(val)) return true;
|
||||||
if (!/^API_((BEFORE_|AFTER_)?[A-Z0-9_]+)$/.test(key)) return true;
|
if (!/^API_((BEFORE_|AFTER_)?[A-Z0-9_]+)$/.test(key)) return true;
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
@ -220,7 +219,7 @@ _app_base = {
|
||||||
this._fn_level++;
|
this._fn_level++;
|
||||||
|
|
||||||
// BEFORE hooker
|
// BEFORE hooker
|
||||||
if (aMsg['BEFORE_'+msg] || this['BEFORE_'+msg]) {
|
if (aMsg['BEFORE_'+msg] || this['API_BEFORE_'+msg]) {
|
||||||
var bContinue = this._cast(sender, 'BEFORE_'+msg, params);
|
var bContinue = this._cast(sender, 'BEFORE_'+msg, params);
|
||||||
if (!bContinue) {
|
if (!bContinue) {
|
||||||
this._fn_level--;
|
this._fn_level--;
|
||||||
|
|
@ -240,7 +239,7 @@ _app_base = {
|
||||||
if (vRet.length < 2) vRet = vRet[0];
|
if (vRet.length < 2) vRet = vRet[0];
|
||||||
|
|
||||||
// AFTER hooker
|
// AFTER hooker
|
||||||
if (aMsg['AFTER_'+msg] || this['AFTER_'+msg]) {
|
if (aMsg['AFTER_'+msg] || this['API_AFTER_'+msg]) {
|
||||||
this._cast(sender, 'AFTER_'+msg, params);
|
this._cast(sender, 'AFTER_'+msg, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue