2012-12-08 56 views
1

使用MooTools的我使用的mootools 核心 - 1.4.5.js的Windows 8地铁的JavaScript应用程序,当一个尝试创建应用程序软件包,我得到了一个错误在验证步:与Windows 8地铁的JavaScript应用程序

mootools-core-1.4.5.js has JavaScript syntax or other problems. 
+0

我们没有足够的信息来帮助你。尝试剥离应用程序的各个部分,直到您拥有最小的可重现示例。一旦你有了,我们将会更好地帮助你。 – mydogisbox

+0

谢谢,我已经找到了解决方案 – Ouadie

+1

好找!这应该也会帮助其他人 – mydogisbox

回答

1

我发现我工作的解决方案。
我用MooTools的核心-1.4.5-全compat.js我注释掉这些行:

//Browser.exec = function(text){ 
// if (!text) return text; 
// if (window.execScript){ 
//  window.execScript(text); 
// } else { 
//  var script = document.createElement('script'); 
//  script.setAttribute('type', 'text/javascript'); 
//  script.text = text; 
//  document.head.appendChild(script); 
//  document.head.removeChild(script); 
// } 
// return text; 
//}; 

//String.implement('stripScripts', function(exec){ 
// var scripts = ''; 
// var text = this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(all, code){ 
//  scripts += code + '\n'; 
//  return ''; 
// }); 
// if (exec === true) Browser.exec(scripts); 
// else if (typeOf(exec) == 'function') exec(scripts, text); 
// return text; 
//}); 
相关问题