Here is what i end up with

setValue:function(val){
            this.base(arguments, val-1);
}

i also thing the issue is the missing arguments


Regards
Le 30 mars 2012 05:57, thron7 <[email protected]> a écrit :
> Indeed, I also think the issue is in the basecall optimization. The
> error message you got leaves much to be wanting, though, so please open
> a bug for it.
>
> As for a fix, either follow John's hint, or disable basecalls
> optimization in the config.
>
> T.
>
> On 03/30/2012 10:51 AM, John Spackman wrote:
>> The only thing I can see is your getValue method should be:
>>       getValue:function(){
>>               return this.base(arguments)+1;
>>       }
>>
>>
>> John
>>
>> On 29/03/2012 19:24, "Benjamin Dreux"<[email protected]>  wrote:
>>
>>> Hi,
>>> I've created a new class, when compiling it i've got this error:
>>>
>>>   - Generate packages \Problem optimizing ifsr.ui.SteppedProgressBar;
>>> probably a syntax problem?
>>>
>>> here is my class
>>>
>>> qx.Class.define("ifsr.ui.SteppedProgressBar",{
>>>     extend:qx.ui.indicator.ProgressBar,
>>>     construct:function(value,max){
>>>         this.base(arguments,value,max);
>>>         this.addListener("click",this._onClick,this);
>>>     },
>>>     members:{
>>>         _onClick:function(event){
>>>             var clickPosition = event.getDocumentLeft();
>>>             var contentElem = this.getContentElement().getDomElement();
>>>             var location = qx.bom.element.Location.get(contentElem);
>>>             var width = qx.bom.element.Dimension.getWidth(contentElem);
>>>
>>>             var percentage = this._computePercentage(clickPosition,
>>> width, location.left);
>>>             var correctedValue = this._correctValue(percentage);
>>>             this.setValue(correctedValue);
>>>         },
>>>         _computePercentage:function(cursorLeft, widgetWidth, offset){
>>>           return ((cursorLeft-offset)/widgetWidth);
>>>         },
>>>         _correctValue:function(val){
>>>             return parseInt(val*this.getMaximum(),10);
>>>         },
>>>         getValue:function(){
>>>             return this.base()+1;
>>>         }
>>>     }
>>> });
>>>
>>> I can't see where the issue is.
>>> Does someone see it ??
>>>
>>> Is there a special meaning for this error
>>>
>>> Regards
>>>
>>> --
>>> Benjamin Dreux
>>> Analyste-Programmeur
>>> Chaire de logiciel libre-Finance Social et solidaire
>>> UQAM
>>> Montréal
>>>
>>> --------------------------------------------------------------------------
>>> ----
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-- 
Benjamin Dreux
Analyste-Programmeur
Chaire de logiciel libre-Finance Social et solidaire
UQAM
Montréal

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to