Sha256: 2afd3f7e3f1b12d1234fadb9367ae32ed7e7b27242090de7263fc58b7f38ebf3

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

if (!Array.prototype.map) {
	Array.prototype.map = function (fun /*, thisp */) {
		"use strict";

		if (this === void 0 || this === null) {
			throw new TypeError();
		}

		var t = Object(this),
			// jshint bitwise: false
			len = t.length >>> 0;

		if (typeof fun !== 'function') {
			throw new TypeError();
		}

		var res = new Array(len),
			thisp = arguments[1];

		for (var i = 0; i < len; i++) {
			if (i in t) {
				res[i] = fun.call(thisp, t[i], i, t);
			}
		}

		return res;
	};
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
leaflet-js-0.8.dev2 lib/leaflet.draw/spec/suites/SpecHelper.js