Remove the contains array prototype extension

namespaces
Svein-Tore Griff With 2013-07-25 01:56:20 +02:00
parent 26240d2887
commit 022fee6036
1 changed files with 0 additions and 5 deletions

View File

@ -317,11 +317,6 @@ if(String.prototype.trim === undefined) {
};
}
// Simple 'contains' function. Easier to use than keep testing indexOf to -1.
Array.prototype.contains = function (needle) {
return (this.indexOf(needle) > -1);
};
// Finally, we want to run init when document is ready.
H5P.jQuery(document).ready(function(){
H5P.init();