Error: AnimationRenderer failed: Cannot read property 'length' of null [message #1123308] |
Wed, 02 October 2013 12:27 |
Matthias Nick Messages: 197 Registered: August 2013 |
Senior Member |
|
|
Hi,
I the the following error message:
Error: AnimationRenderer failed: Cannot read property 'length' of null
This happens when I toggle between the red and yellow button (right top corner) very fast: widgets.eclipse-scout.cloudbees.net/web
Analysis:
Version: Rap 2.1.0
The problem is caused in the class rwt.animation.AnimationRenderer by the method:
gradient : function( value, startValue, endValue ) {
var convertColor = rwt.animation.AnimationRenderer.converter.color;
var convertFactor = rwt.animation.AnimationRenderer.converter.factor;
var result = [];
var length = Math.min( endValue.length, startValue.length );
because endValue = null
my css file looks as follows:
Button[PUSH],
Button[TOGGLE],
Button[BORDER] {
background-image: gradient(linear, left top, left bottom, from(#7ab9dd), to(#67a8ce));
color: #ffffff;
animation: hoverOut 500ms ease-out;
border-radius: 5px;
cursor: pointer;
padding: 4px 5px;
}
If I remove the animation property, the error goes away.
Can you give me a hint?
|
|
|
Re: Error: AnimationRenderer failed: Cannot read property 'length' of null [message #1123462 is a reply to message #1123308] |
Wed, 02 October 2013 15:39 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi,
please open a bugzilla and attach a snippet/project there to reproduce
the issue?
Thanks,
Ivan
On 10/2/2013 3:27 PM, Matthias Nick wrote:
> Hi,
>
> I the the following error message:
> Error: AnimationRenderer failed: Cannot read property 'length' of null
>
> This happens when I toggle between the red and yellow button (right top corner) very fast: widgets.eclipse-scout.cloudbees.net/web
>
> Analysis:
> Version: Rap 2.1.0
>
> The problem is caused in the class rwt.animation.AnimationRenderer by the method:
>
> gradient : function( value, startValue, endValue ) {
> var convertColor = rwt.animation.AnimationRenderer.converter.color;
> var convertFactor = rwt.animation.AnimationRenderer.converter.factor;
> var result = [];
> var length = Math.min( endValue.length, startValue.length );
>
> because endValue = null
>
>
> my css file looks as follows:
>
> Button[PUSH],
> Button[TOGGLE],
> Button[BORDER] {
> background-image: gradient(linear, left top, left bottom, from(#7ab9dd), to(#67a8ce));
> color: #ffffff;
> animation: hoverOut 500ms ease-out;
> border-radius: 5px;
> cursor: pointer;
> padding: 4px 5px;
> }
>
>
> If I remove the animation property, the error goes away.
>
> Can you give me a hint?
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02686 seconds