mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Fixed multifile.js non-standard forEach() reference, using jQuery.each() instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101135 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e3dd9c9af3
commit
f8ff13ad9e
12
thirdparty/multifile/multifile.js
vendored
12
thirdparty/multifile/multifile.js
vendored
@ -53,12 +53,12 @@ ObservableObject.prototype = {
|
|||||||
unsubscribe : function(evt, fn) {
|
unsubscribe : function(evt, fn) {
|
||||||
this.functions = this.fns.filter(function(el) {if (el !== [evt, fn]) return el;});
|
this.functions = this.fns.filter(function(el) {if (el !== [evt, fn]) return el;});
|
||||||
},
|
},
|
||||||
fire : function(evt, data, scope) {
|
fire : function(evt, data, scope) {
|
||||||
scope = scope || window
|
scope = scope || window
|
||||||
this.functions.forEach(function(el) {
|
jQuery(this.functions).each(function(el) {
|
||||||
if (el[0] == evt) el[1].call(scope, data);
|
if (el[0] == evt) el[1].call(scope, data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var MultiSelectorObserver = new ObservableObject();
|
var MultiSelectorObserver = new ObservableObject();
|
||||||
|
Loading…
Reference in New Issue
Block a user