X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F01_core%2F03_XScript.js;h=f32a7441e79c07eecc7197e09a468ef7a0d6334b;hb=HEAD;hp=b8255caa76057433e315f046cf18f41b4c3bc989;hpb=6b28a86cc49680dac50278ff5617bfe7a3d98613;p=pettanr%2FclientJs.git
diff --git a/0.6.x/js/01_core/03_XScript.js b/0.6.x/js/01_core/03_XScript.js
index b8255ca..f32a744 100644
--- a/0.6.x/js/01_core/03_XScript.js
+++ b/0.6.x/js/01_core/03_XScript.js
@@ -9,20 +9,20 @@ var X_Script_VBS_ENABLED = X_UA[ 'Windows' ] && !X_UA[ 'WinCE' ] && !X_UA[ 'WinP
* @type {object}
*/
X[ 'Script' ] = {
- 'tryCatch' : X_Script_try
+
+ 'tryIfSafe' : X_Script_try,
+ /**
+ * Visual Basic Script ã使ããã?
+ * @alias X.Script.VBS
+ * @type {boolean}
+ */
+ 'VBS' : X_Script_VBS_ENABLED
// git, strict mode, asm.js,
};
if( X_Script_VBS_ENABLED ){
-/**
- * Visual Basic Script ã使ããã?
- * @alias X.Script.VBS
- * @type {boolean}
- */
- X[ 'Script' ][ 'VBS' ] = true;
-
X_Script_gte15 || document.write( '' );
+ // http://space.geocities.jp/nequomame/others/excelvba/excelvba_01_03.html
+ // Document.ActiveElement ã«å®å
¨ã«è§¦ãããï¼ç¢ºèª
+ // ããããã° error 㯠iframe å
ã§èµ·ãã¦ãã
+ // http://stackoverflow.com/questions/14378224/document-activeelement-in-iframe-shows-unspecified-error-in-ie-standards-mode
+ // document.activeElement in iframe shows unspecified error in IE standards mode
+ X_Script_gte15 || document.write( '' );
+
// TODO Object ã®ã¡ã³ãã辿ã vba
// byte Array ãæ±ã vba
};
+/**
+ * try-catch æ§æã使ãã¦å®å
¨ã«å®è¡ã§ãããªããã³ã¼ããå®è¡ãã
+ * @alias X.Script.tryIfSafe
+ * @param {funciton} func
+ * @param {array=} å¼æ°ã®å
¥ã£ãé
å
+ */
function X_Script_try( func, args ){
if( !X_Script_gte15 ){
//return func.apply( {}, args );
+ // window.onerror = return true ãè¨å®
+ // vbs å´ããå¼ã³åºã?
return;
};
return X_Script_gte15( func, args || [] );