Plugin Directory

Changeset 1022826


Ignore:
Timestamp:
11/10/2014 09:29:00 AM (11 years ago)
Author:
bypr.nils
Message:

fixed js strict error in unminified file

Location:
smart-image-loader/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smart-image-loader/trunk/smart_image_loader.js

    r1021594 r1022826  
    147147            element_width,
    148148            element_height,
     149            element_visibile,
    149150            is_not_above_screen,
    150151            is_not_below_screen,
  • smart-image-loader/trunk/smart_image_loader.min.js

    r1021594 r1022826  
    22var ag=document,V=window,H=O(ag),ab,B,A,v,i,F,R,h,N,o,l,k,r,a,j,f,I,n,D,u,aa,J,E,ad,ai,ae,q=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),y=!!(V.matchMedia&&V.matchMedia("(max-device-width: "+ah.lazy_load_at+"px)").matches),W=function(){var w=V,d="inner";
    33if(!("innerWidth" in V)){d="client";w=ag.documentElement||ag.body;}return{width:w[d+"Width"],height:w[d+"Height"]};},X=function(d,w){if(window.getComputedStyle){return document.defaultView.getComputedStyle(d,null)[w];
    4 }if(d.currentStyle){return d.currentStyle[w];}},K=function(){return J!==aa;},c=function(){return ad!==E;},ac=function(){return ae!==ai;},S=function(ar){var w,at,am,ak,an,d,ao,al,au,aq,ap;
    5 if(ar.nodeType&&ar.nodeType==1){w=ar;}else{if(this.nodeType&&this.nodeType==1){w=this;}}at=O(w);am=at.data("offsetTop");ak=at.data("offsetLeft");an=at.data("width");
    6 d=at.data("height");element_visibile=at.data("visibility");ao=am+d>N-ah.meat;aq=ak+an>o-ah.meat;al=am<N+R+ah.meat;au=ak<o+F+ah.meat;return ao&&aq&&al&&au&&element_visibile;
    7 },Y=function(d){var w,ak;if(d.nodeType&&d.nodeType==1){w=d;}else{if(this.nodeType&&this.nodeType==1){w=this;}}ak=O(w).attr("src");return ak==ah.placeholder||ak==i;
    8 },P=function(d){return typeof d.width=="string"&&d.width.match(/^\d+$/)&&typeof d.height=="string"&&d.height.match(/^\d+$/);},e=function(d,w){d=d||B||O("body").find("noscript").prev(ah.selector);
    9 d.each(function(){var al=O(this);al.data({offsetTop:al.offset().top,offsetLeft:al.offset().left,width:al.width(),height:al.height(),visibility:X(this,"display")!="none"&&X(this,"visibility")!="hidden"&&X(this,"opacity")!="0"});
     4}if(d.currentStyle){return d.currentStyle[w];}},K=function(){return J!==aa;},c=function(){return ad!==E;},ac=function(){return ae!==ai;},S=function(at){var ak,au,an,al,ao,w,d,ap,am,av,ar,aq;
     5if(at.nodeType&&at.nodeType==1){ak=at;}else{if(this.nodeType&&this.nodeType==1){ak=this;}}au=O(ak);an=au.data("offsetTop");al=au.data("offsetLeft");ao=au.data("width");
     6w=au.data("height");d=au.data("visibility");ap=an+w>N-ah.meat;ar=al+ao>o-ah.meat;am=an<N+R+ah.meat;av=al<o+F+ah.meat;return ap&&ar&&am&&av&&d;},Y=function(d){var w,ak;
     7if(d.nodeType&&d.nodeType==1){w=d;}else{if(this.nodeType&&this.nodeType==1){w=this;}}ak=O(w).attr("src");return ak==ah.placeholder||ak==i;},P=function(d){return typeof d.width=="string"&&d.width.match(/^\d+$/)&&typeof d.height=="string"&&d.height.match(/^\d+$/);
     8},e=function(d,w){d=d||B||O("body").find("noscript").prev(ah.selector);d.each(function(){var al=O(this);al.data({offsetTop:al.offset().top,offsetLeft:al.offset().left,width:al.width(),height:al.height(),visibility:X(this,"display")!="none"&&X(this,"visibility")!="hidden"&&X(this,"opacity")!="0"});
    109});h=O(ag).height();if(w){var ak=y?null:x;Q(ak,true);}},G=function(){var d,w,ak;V.scrollBy(0,Math.floor(f/2));f*=0.95;d=h<=R+N+1;w=(N===0);ak=d||w;I=false;
    1110if(Math.abs(f)>2&&!r&&!ak){I=true;}else{if(ak&&ah.emulate_rubberband){b(f);}}},b=function(ak){n=ak;var al=ak<0?1:-1,w=Math.min(Math.abs(ak),V.innerHeight/10)*al,d=Math.abs(ak*3);
Note: See TracChangeset for help on using the changeset viewer.