pluotsorbet/legacy.js

21 строка
527 B
JavaScript
Исходник Обычный вид История

2014-08-05 06:55:18 +04:00
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set shiftwidth=4 tabstop=4 autoindent cindent expandtab: */
'use strict';
if (!Math.fround) {
Math.fround = (function() {
var fa = new Float32Array(1);
return function(v) {
fa[0] = Math.round(v);
return fa[0];
}
})();
}
2014-08-21 21:11:58 +04:00
if (!String.prototype.contains) {
String.prototype.contains = function() {
return String.prototype.indexOf.apply(this, arguments) !== -1;
};
}