From abd9849f522cf495a6791fc225748e714757487f Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 10 May 2017 19:19:26 +0300 Subject: [PATCH] Dirty hack to disable libwebp alerts Closes #1384 --- app/vendor/libwebpjs/libwebp-0.2.0.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/vendor/libwebpjs/libwebp-0.2.0.js b/app/vendor/libwebpjs/libwebp-0.2.0.js index 38fe5213..118d807e 100644 --- a/app/vendor/libwebpjs/libwebp-0.2.0.js +++ b/app/vendor/libwebpjs/libwebp-0.2.0.js @@ -24,6 +24,8 @@ // Author: Dominik Homberger (dominik.homberger@gmail.com) (function() { + var self; + var ca = void 0, p = null, s = 0, @@ -617,7 +619,7 @@ function Y(a, b, c) { a.a == L && (a.a = b, a.xc = c, a.za = 0); - alert(b + ": " + c); + // alert(b + ": " + c); return 0 } @@ -2657,7 +2659,7 @@ Hd(a, g) ? (e = zd(g.width, g.height, d.Qa, d.j), e == L && !Mf(a, g) && (e = a.a)) : e = a.a; a != p && ke(a) } - e != L && this.Yc(d.j); + e != L && (self || this).Yc(d.j); return e } @@ -3225,6 +3227,7 @@ this.WebPFreeDecBuffer = this.Yc = function(a) { a != p && (a.Fc || (a.Jb = ""), a.jc = 0, a.Jb = a.jc = p) }; + self = this; var va = U(511, x), tc = U(511, x), sc = U(2041, 0),