From c58aaff84e4811d318c657aec1eb6151ded3cddf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jun 2015 11:38:51 +0530 Subject: [PATCH] ... --- resources/rapydscript/compiler.js | 2 +- src/calibre/utils/rapydscript.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/rapydscript/compiler.js b/resources/rapydscript/compiler.js index 9ec823eb08..bab8fe7615 100644 --- a/resources/rapydscript/compiler.js +++ b/resources/rapydscript/compiler.js @@ -5955,6 +5955,6 @@ function OutputStream(options) { }); })(); -rs_baselib_pyj = {"beautifed": {"extends": "function _$rapyd$_extends(child, parent) {\n child.prototype = Object.create(parent.prototype);\n child.prototype.constructor = child;\n}", "bind": "function _$rapyd$_bind(fn, thisArg) {\n var ret;\n if (fn.orig) {\n fn = fn.orig;\n }\n if (thisArg === false) {\n return fn;\n }\n ret = function() {\n return fn.apply(thisArg, arguments);\n };\n ret.orig = fn;\n return ret;\n}", "iterable": "function _$rapyd$_Iterable(iterable) {\n if (iterable instanceof Array || iterable instanceof String || typeof iterable === \"string\") {\n return iterable;\n }\n return Object.keys(iterable);\n}", "mixin": "function _$rapyd$_mixin(target, source, overwrite) {\n for (var i in source) {\n if (source.hasOwnProperty(i) && overwrite || typeof target[i] === \"undefined\") {\n target[i] = source[i];\n }\n }\n}", "print": "function _$rapyd$_print() {\n var args = [].slice.call(arguments, 0);\n var output;\n output = JSON.stringify(args);\n if (typeof console === \"object\") {\n console.log(output.substr(1, output.length - 2));\n }\n}", "enumerate": "function enumerate(item) {\n var arr;\n arr = [];\n for (var i=0;i