Hello Guys,
I was using the CDN link for igniteUI before and it is fine and works. There are a couple of problems I started running into when I downloaded the "Download full product" and install igniteUI on my local machine.
I am using Tapestry5 framework which inturn uses Google's Closure Minimizer to minify all the js files. Now when I try to load this file using AMD shim config(RequireJS), Tapestry does this minification for us.
The problem is infragistics.lob.js file is not able to be minified and throws exception at line 603 saying
ERROR - Parse error. identifier is a reserved word
(function($){var _aNull=function(val){return val===null||val===undefined},_draggable=$.ui.draggable.prototype.widgetFullName||^$.ui.draggable.prototype.widgetName,_tree=$.ui.igTree.prototype.widgetFullName||$.ui.igTree.prototype.widgetName;$.ig=$.ig||{};$.ig.Pivot=$.ig.Pivot||{};(more code..)
Caused by: java.lang.RuntimeException: Compilation failed: JSC_PARSE_ERROR. Parse error. identifier is a reserved word at StreamableResource<text/javascript classpath:META-INF/assets/javascript/ignite-ui/infragistics.lob.js COMPRESSABLE lastModified: Mi Jul 01 20:15:14 MESZ 2015 size: 2625858> line 603 : 0. at org.apache.tapestry5.internal.webresources.GoogleClosureMinimizer.doMinimize(GoogleClosureMinimizer.java:88) at org.apache.tapestry5.internal.webresources.AbstractMinimizer$1.perform(AbstractMinimizer.java:72) at org.apache.tapestry5.internal.webresources.AbstractMinimizer$1.perform(AbstractMinimizer.java:68) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.perform(OperationTrackerImpl.java:110) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.perform(PerThreadOperationTracker.java:84) at org.apache.tapestry5.ioc.internal.RegistryImpl.perform(RegistryImpl.java:1264)
Another problem not related to this but exists is when downloading using the installer, the folder "igToolTip" is missing under structure/images/.
These errors are preventing us from running the js files locally. Is there any solution?
Regards,Sumanth Shankar
Hello Guzs,
After further analsing the code by seems to be with function _getElementSize
_getElementSize : function(element) {
var el = $('<div style="width: 5000px; height: 5000px; position: absolute; top: -10000px; left: -10000px;"></div>')...othercode float = element.css("float");
}
where float is treated as javascript reserved keyword and hence causing the above exception.
I fixed this but other bug crept up.
internalErrors : {
.//code
"uncaught type error 'cannot read property locale of undefined"
please ignore the uncaught type error.
The fix i'm using for the float is just renamed the variable to something else.