Given javascript code like the following (extracted from a plugin referenced below):
var AutosizeInput = (function () {
function AutosizeInput(input, opt
You can create your own something like
if (!Object.defineProperty) {
Object.defineProperty = function (obj, prop, descriptor) {
if (arguments.length < 3) { // all arguments required
throw new TypeError("Arguments not optional");
}
prop += ""; // convert prop to string
...
You can find the rest of the code here: