チェンジセット 1520

差分発生行の前後
無視リスト:
コミット日時:
2008/10/05 16:10:03 (3 年前)
コミッタ:
gyuque
ログメッセージ:

don't remove elements actually in short MC

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • ruby/jsplash/trunk/client2/jsplash/objects.js

    r1517 r1520  
    44JSplash.EXECUTED_SHOWFRAME = 2; 
    55JSplash.EXECUTED_END       = 3; 
     6 
     7JSplash.ObjectInstance.REMOVE_THRESH = 10; 
    68 
    79JSplash.injectScriptVariables = function(func, vlist) { 
     
    259261                        if (replaced && replaced.appended) 
    260262                        { 
    261                                 this.g.removeChild(replaced.g); 
    262                                 replaced.appended = false; 
     263                                 // short movie clips don't remove actually 
     264                                if (this.taglist.length > JSplash.ObjectInstance.REMOVE_THRESH) 
     265                                { 
     266                                        this.g.removeChild(replaced.g); 
     267                                        replaced.appended = false; 
     268                                } 
    263269                        } 
    264270                }