Changeset 20348 for platform

Show
Ignore:
Timestamp:
10/01/08 10:53:40 (2 months ago)
Author:
thorikawa
Message:

updateIconの対象オブジェクトを指定可能に

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/firefox/FireMobileSimulator/trunk/src/chrome/content/overlay.js

    r20324 r20348  
    433433}; 
    434434 
    435 firemobilesimulator.overlay.updateIcon = function() { 
     435firemobilesimulator.overlay.updateIcon = function(windowObj) { 
    436436        dump("[msim]updateicon\n"); 
    437         var msimButton = document.getElementById("msim-button"); 
    438         var menu = document.getElementById("msim-menu"); 
     437        windowObj = windowObj || window; 
     438        var msimButton = windowObj.document.getElementById("msim-button"); 
     439        var menu = windowObj.document.getElementById("msim-menu"); 
    439440        var target = [msimButton, menu]; 
    440441        target.forEach(function(item) {