Merge remote-tracking branch 'modules/master' into subtree

this merges the master head of https://github.com/helma-org/apps-modules-mirror into helma
This commit is contained in:
Simon Oberhammer 2012-03-27 11:46:35 +02:00
commit 226552bc24
53 changed files with 12023 additions and 0 deletions

View file

@ -0,0 +1,33 @@
function onStart() {
root.date = new Date();
root.string = "root";
}
function hello_macro(param) {
return "hello";
}
function echo_macro(param, arg) {
return arg || param.what;
}
function isDate_filter(arg) {
return arg instanceof Date;
}
function isRootDate_filter(arg) {
return (arg instanceof Date) &&
arg.getTime() == root.date.getTime();
}
function isResponseDate_filter(arg) {
return (arg instanceof Date) && arg == res.data.date;
}
function makeLongString() {
var b = new java.lang.StringBuffer();
for (var i = 1; i <= 10000; i++) {
b.append(i.toString()).append(" ");
}
return b.toString();
}