Commit d2ad4795 authored by Jorg10's avatar Jorg10

Update bootstrap-multiselect.js

Added Array forEach function for browsers that don't support EcmaScript5 (IE 8/9)
parent 84b63dc1
...@@ -10,6 +10,15 @@ ...@@ -10,6 +10,15 @@
"use strict";// jshint ;_; "use strict";// jshint ;_;
if (Array.prototype.forEach === null || Array.prototype.forEach === undefined) {
Array.prototype.forEach = function (func) {
var index;
for (index = 0; index < this.length; ++index) {
func(this[index]);
}
};
}
if (typeof ko !== 'undefined' && ko.bindingHandlers && !ko.bindingHandlers.multiselect) { if (typeof ko !== 'undefined' && ko.bindingHandlers && !ko.bindingHandlers.multiselect) {
ko.bindingHandlers.multiselect = { ko.bindingHandlers.multiselect = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment