UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

65 lines (54 loc) 2 kB
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="text/css"> .highlight { display: block; background-color: #ddd; } </style> <script type="text/javascript"> function highlight() { document.getElementById(location.hash.replace(/#/, "")).className = "highlight"; } </script> </head> <body onload="prettyPrint(); highlight();"> <pre class="prettyprint lang-js">/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ // @define Siesta.Project.Browser.UI.Override // @require Ext.Template // @require Ext.XTemplate // @require Ext.data.Connection // @require Ext.util.XTemplateCompiler // @require Ext.data.schema.Schema // Exceptions happening in grid cell rendering should not be silenced Ext.XTemplate.override({ strict : true }); // Override to allow report to fetch the data from file system // http://www.sencha.com/forum/showthread.php?10621-Why-Ajax-can-not-get-local-file-while-prototypejs-can&amp;s=3ce6b6ad58be217b173c3b31b8f0ad5d Ext.data.Connection.override({ parseStatus : function (status) { var result = this.callOverridden(arguments); if (status === 0) { result.success = true; } return result; } }); // workaround for: https://www.sencha.com/forum/showthread.php?311863-6.0.2-Ext.util.XTemplateCompiler-leaks-global-in-minified-version&amp;p=1138706 !function () { Ext.util.XTemplateCompiler.prototype.useEval = false; Ext.Template.prototype.useEval = false; window.$ = window.jQuery; var proxy = Ext.data.schema.Schema.get(&#39;default&#39;).getProxy() proxy.apply = proxy.compile(proxy.template) }()</pre> </body> </html>