diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2005-02-15 23:55:50 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2005-02-15 23:55:50 (GMT) |
commit | 77a6d79289059e35c73be0a626decab012715ddb (patch) | |
tree | 4717b16e5bea7856b17f9567c8ffc550f46198cb /boards/anim | |
parent | 134dd4ef3585396190838cd0e56a61bffe65aee3 (diff) |
Yves improved anim again
Bruno started the mime type system
Diffstat (limited to 'boards/anim')
-rw-r--r-- | boards/anim/animation.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/boards/anim/animation.js b/boards/anim/animation.js index 40eb2c9..407fff5 100644 --- a/boards/anim/animation.js +++ b/boards/anim/animation.js @@ -118,13 +118,11 @@ function apply_frame(frame_no){ continue; } if ( AnimItemlist[i][1]['frame_' + frame_no]['text'] ){ - //alert('text'); - // first removing old text node - if ( ! ( AnimItemlist[i][1]['frame_' + frame_no]['create'])){ - AnimItemlist[i][0].removeChild(AnimItemlist[i][0].childNodes.lastChild); - // second append the right text node - } - AnimItemlist[i][0].appendChild(AnimItemlist[i][1]['frame_' + frame_no]['text']); + if (AnimItemlist[i][1]['frame_' + frame_no]['create']){ + // append the right text node + AnimItemlist[i][0].appendChild(AnimItemlist[i][1]['frame_' + frame_no]['text']); + } + else AnimItemlist[i][0].textContent=AnimItemlist[i][1]['frame_' + frame_no]['text'].nodeValue; } for (k=0; k< AnimItemlist[i][1]['frame_' + frame_no].length; k++){ attr = AnimItemlist[i][1]['frame_' + frame_no][k][0]; |