From 049e5bcfc7ca287726cbe602bff0ca578293a88b Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sun, 14 Feb 2016 20:10:36 +1100 Subject: [PATCH] Fix bad var context --- modules/system/assets/js/framework.extras.js | 3 ++- modules/system/assets/ui/js/loader.stripe.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/system/assets/js/framework.extras.js b/modules/system/assets/js/framework.extras.js index e78619e91..c6c43c4e1 100644 --- a/modules/system/assets/js/framework.extras.js +++ b/modules/system/assets/js/framework.extras.js @@ -24,6 +24,7 @@ $.oc = {} var StripeLoadIndicator = function () { + var self = this this.counter = 0 this.indicator = $('
').addClass('stripe-loading-indicator loaded') .append($('
').addClass('stripe')) @@ -31,7 +32,7 @@ this.stripe = this.indicator.find('.stripe') $(document).ready(function(){ - $(document.body).append(this.indicator) + $(document.body).append(self.indicator) }) } diff --git a/modules/system/assets/ui/js/loader.stripe.js b/modules/system/assets/ui/js/loader.stripe.js index 01e6a35ad..e13a6433b 100644 --- a/modules/system/assets/ui/js/loader.stripe.js +++ b/modules/system/assets/ui/js/loader.stripe.js @@ -16,6 +16,7 @@ $.oc = {} var StripeLoadIndicator = function () { + var self = this this.counter = 0 this.indicator = $('
').addClass('stripe-loading-indicator loaded') .append($('
').addClass('stripe')) @@ -23,7 +24,7 @@ this.stripe = this.indicator.find('.stripe') $(document).ready(function(){ - $(document.body).append(this.indicator) + $(document.body).append(self.indicator) }) }