vendor/assets/javascripts/markdown.extra.js in pagedown-bootstrap-rails-2.1.3 vs vendor/assets/javascripts/markdown.extra.js in pagedown-bootstrap-rails-2.1.4
- old
+ new
@@ -14,10 +14,10 @@
/******************************************************************
* Utility Functions *
*****************************************************************/
// patch for ie7
- if (!Array.indexOf) {
+ if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function(obj) {
for (var i = 0; i < this.length; i++) {
if (this[i] == obj) {
return i;
}