Plugin Directory

Changeset 495408


Ignore:
Timestamp:
01/25/2012 10:54:11 PM (14 years ago)
Author:
codeblab
Message:

Copied changes to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • glass/trunk/glass.js

    r493478 r495408  
    178178    if (o.tagName.toLowerCase() == 'div'       // I don't know why only these.
    179179        || o.tagName.toLowerCase() == 'p'      // I voodooed these. :-(
    180         || o.tagName.toLowerCase() == 'body') {
     180        || o.tagName.toLowerCase() == 'body' ) {
    181181
    182182      // Get the marginLeft, marginTop.
     
    475475              rescale = 0;
    476476              if (my.scaleX < minEnlarge) {
    477                 alert('scale up');
    478477                rescale = minEnlarge;
    479478              }
    480479              else if (my.scaleX > maxEnlarge) {
    481                 alert('scale down from '+my.scaleX + ' to ' +maxEnlarge);
    482480                rescale = maxEnlarge;
    483481              }
     
    10921090  img.hires.preload.onload = glassRefresh;  // Hide 'Loading.' layer.
    10931091
    1094   if (!document.body.glass) glassInsertGlass(); // Once.
    1095 
    10961092  if ('ontouchstart' in img)
    10971093    img.ontouchstart = glassTouchStart;     // iOS/Safari hook.
    10981094  else
    10991095    img.onmouseover = glassMouseStart;      // Turn on the glass.
     1096
     1097  if (!document.body.glass) glassInsertGlass();
    11001098
    11011099  glassAddSupMargins(img);
Note: See TracChangeset for help on using the changeset viewer.