This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 8b8e1663f init Memorable.items sooner, should fix error when
sf_markitup.js calls Memorable.add before Memorable.initialize ran (due to
jquery upgrade)
8b8e1663f is described below
commit 8b8e1663f3637ca1098c3132ae4c89d057d71732
Author: Dave Brondsema <[email protected]>
AuthorDate: Mon Aug 15 11:29:06 2022 -0400
init Memorable.items sooner, should fix error when sf_markitup.js calls
Memorable.add before Memorable.initialize ran (due to jquery upgrade)
---
Allura/allura/public/nf/js/memorable.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/public/nf/js/memorable.js
b/Allura/allura/public/nf/js/memorable.js
index f5b542801..6b1af609e 100644
--- a/Allura/allura/public/nf/js/memorable.js
+++ b/Allura/allura/public/nf/js/memorable.js
@@ -238,6 +238,7 @@ Memorable.inputFactory = function(obj) {
}
};
+Memorable.items = [];
/**
* Convenience method to find any classes decorated with `.memorable` and
create a related Input object for it
@@ -246,7 +247,6 @@ Memorable.inputFactory = function(obj) {
Memorable.initialize = function(selector){
Memorable.forget();
var s = selector || '.memorable';
- Memorable.items = [];
$(s).each(function(){
Memorable.add(this);
});