From 022fee6036e2a028fc5475121bd8602c783fc29f Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Thu, 25 Jul 2013 01:56:20 +0200 Subject: [PATCH] Remove the contains array prototype extension --- js/h5p.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index b795f6b..8dfbf19 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -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();