Created
October 14, 2013 15:59
-
-
Save xenophy/6977939 to your computer and use it in GitHub Desktop.
文字列のExt Direct関数を関数オブジェクトに変換する方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var me = this, | |
p = me.getEditView(), | |
form = p.getForm(), | |
fn = p.api.remove; | |
if (typeof fn !== 'function') { | |
//<debug> | |
var fnName = fn; | |
//</debug> | |
p.api.remove = fn = Ext.direct.Manager.parseMethod(fn); | |
//<debug> | |
if (!Ext.isFunction(fn)) { | |
Ext.Error.raise('Cannot resolve Ext.Direct API method ' + fnName); | |
} | |
//</debug> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment