From 3507c7574f0c32c8e76e4ab0d8d50b3c9eeddc17 Mon Sep 17 00:00:00 2001 From: Lostpixelr Date: Sat, 12 Sep 2015 11:44:16 +0200 Subject: [PATCH] fix deleteRule splice was missing length parameter --- js/libs/jscssp/jscssp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libs/jscssp/jscssp.js b/js/libs/jscssp/jscssp.js index 01c79e1..7858fee 100644 --- a/js/libs/jscssp/jscssp.js +++ b/js/libs/jscssp/jscssp.js @@ -4401,7 +4401,7 @@ jscsspStylesheet.prototype = { deleteRule: function(aIndex) { try { - this.cssRules.splice(aIndex); + this.cssRules.splice(aIndex, 1); } catch(e) { } @@ -5428,4 +5428,4 @@ function FilterRepeatingGradientForOutput(aValue, aEngine) return ""; } return CSSParser; -}) \ No newline at end of file +})