B2G/gecko/browser/base/content/newtab/transformations.js
/**
   * Sets a given node's opacity.
   * @param aNode The node to set the opacity value for.
   * @param aOpacity The opacity value to set.
   * @param aCallback The callback to call when finished.
   */
Sets a given node's opacity.
@param aNode The node to set the opacity value for.
@param aOpacity The opacity value to set.
@param aCallback The callback to call when finished.
Sets a given node ' s opacity . @param aNode The node to set the opacity value for . @param aOpacity The opacity value to set . @param aCallback The callback to call when finished .
function Transformation_setNodeOpacity(aNode, aOpacity, aCallback) {
    if (this._getNodeOpacity(aNode) == aOpacity) {
      if (aCallback)
        aCallback();
    } else {
      if (aCallback)
        this._whenTransitionEnded(aNode, aCallback);
      aNode.style.opacity = aOpacity;
    }
  }
function Transformation_setNodeOpacity ( aNode , aOpacity , aCallback ) { if ( this . _getNodeOpacity ( aNode ) == aOpacity ) { if ( aCallback ) aCallback ( ) ; } else { if ( aCallback ) this . _whenTransitionEnded ( aNode , aCallback ) ; aNode . style . opacity = aOpacity ; } }
Sets a given node's opacity.
Sets a given node ' s opacity .