Changeset 30103

Show
Ignore:
Timestamp:
02/16/09 00:38:42 (4 years ago)
Author:
thorikawa
Message:

*端末削除時のロジック修正

Files:
1 modified

Legend:

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

    r30098 r30103  
    2525 
    2626firemobilesimulator.core.resetDevice = function(e) { 
    27         var tab = gBrowser.selectedTab; 
     27        var browser = gBrowser || parent.gBrowser; 
     28        var tab = browser.selectedTab; 
    2829        var ss = Components.classes["@mozilla.org/browser/sessionstore;1"].getService(Components.interfaces.nsISessionStore); 
    2930        ss.setTabValue(tab, "firemobilesimulator-device-id", null); 
     
    9293                var id = ss.getTabValue(tab, "firemobilesimulator-device-id"); 
    9394                dump("getId:"+id+"\n"); 
    94                 if (id > deleteId) { 
     95                if (id > deletedId) { 
    9596                        ss.setTabValue(tab, "firemobilesimulator-device-id", id-1); 
    96                 }else if (id == deleteId) { 
     97                }else if (id == deletedId) { 
    9798                        ss.setTabValue(tab, "firemobilesimulator-device-id", null); 
    9899                } 
    99100        } 
     101        parent.firemobilesimulator.overlay.rewrite(); 
    100102} 
    101103