Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    70
    Vote Rating
    0
    CableDawg is on a distinguished road

      0  

    Default [FIXED][3.0 Core] Template.compile error in ExtJs Core - args not defined

    [FIXED][3.0 Core] Template.compile error in ExtJs Core - args not defined


    On line 2309 on ext-core-debug.js (from the standalone Core package):

    Code:
        compile : function(){
            var me = this,
            	sep = Ext.isGecko ? "+" : ",";
    
            function fn(m, name){
    	        name = "values['" + name + "']";
    	        return "'"+ sep + name + " == undefined ? '' : " + name + args + ")" + sep + "'";
            }
    
            eval("this.compiled = function(values){ return " + (Ext.isGecko ? "'" : "[") +
                 me.html.replace(/\\/g, '\\\\').replace(/(\r\n|\n)/g, '\\n').replace(/'/g, "\\'").replace(this.re, fn) +
                 (Ext.isGecko ?  "';};" : "'].join('');};"));
            return me;
        },
    The private method "fn()" references the variable 'args' which is not defined for that method. I think it is just missing as a named argument for the method.

    Looking at earlier version of the code and the arguments being passed to the method, I think the fix should be (in green):

    Code:
            function fn(m, name, format, args){
    	        name = "values['" + name + "']";
    	        return "'"+ sep + name + " == undefined ? '' : " + name + args + ")" + sep + "'";
            }

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,124
    Vote Rating
    514
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This has already been fixed in SVN, thanks.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar