B2G/gaia/apps/homescreen/js/grid.js
/*
   * Create Icon objects from the descriptors we save in IndexedDB.
   */
Create Icon objects from the descriptors we save in IndexedDB.
Create Icon objects from the descriptors we save in IndexedDB .
function convertDescriptorsToIcons(pageState) {
    var icons = pageState.icons;
    for (var i = 0; i < icons.length; i++) {
      var descriptor = icons[i];
      var app = null;
      if (descriptor.bookmarkURL) {
        app = new Bookmark(descriptor);
        bookmarksByOrigin[app.origin] = app;
      }
      var icon = icons[i] = new Icon(descriptor, app);
      rememberIcon(icon);
    }
    return icons;
  }
function convertDescriptorsToIcons ( pageState ) { var icons = pageState . icons ; for ( var i = 0 ; i < icons . length ; i ++ ) { var descriptor = icons [ i ] ; var app = null ; if ( descriptor . bookmarkURL ) { app = new Bookmark ( descriptor ) ; bookmarksByOrigin [ app . origin ] = app ; } var icon = icons [ i ] = new Icon ( descriptor , app ) ; rememberIcon ( icon ) ; } return icons ; }
Create Icon objects from the descriptors we save in IndexedDB.
Create Icon objects from the descriptors we save in IndexedDB .
// navigator.mozApps backed app will objects will be handled // asynchronously and therefore at a later time.