[gjs/gnome-3-24] tweener: Add undefined property check
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/gnome-3-24] tweener: Add undefined property check
- Date: Fri, 16 Jun 2017 00:50:40 +0000 (UTC)
commit 23ccff45a68cfe2e0145f71d90199ee8101dad57
Author: Philip Chimento <philip chimento gmail com>
Date: Sun May 21 20:45:59 2017 -0700
tweener: Add undefined property check
To avoid a rare SpiderMonkey warning. Unreviewed.
https://bugzilla.gnome.org/show_bug.cgi?id=781219
modules/tweener/tweener.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/tweener/tweener.js b/modules/tweener/tweener.js
index 83bc870..e0e48d9 100644
--- a/modules/tweener/tweener.js
+++ b/modules/tweener/tweener.js
@@ -535,7 +535,7 @@ function _addTweenOrCaller(target, tweeningParameters, isCaller) {
copyProperties[istr] = new PropertyInfo(properties[istr].valueStart,
properties[istr].valueComplete,
properties[istr].valueComplete,
- properties[istr].arrayIndex,
+ properties[istr].arrayIndex || 0,
{},
properties[istr].isSpecialProperty,
properties[istr].modifierFunction,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]