Improved Docs, Chainable Methods

This commit is contained in:
Chinmay Pandhare
2017-07-06 20:34:10 +05:30
parent ef2d315089
commit 86f06813ba
3 changed files with 172 additions and 41 deletions

View File

@@ -39,7 +39,7 @@ function formatInput(args,format,images) {
else if (format == "r")
format = ['o_string_a', 'o_number'];
else if (format == "l")
format = ['string','string','o_function'];
format = ['o_string','string','o_function'];
/*
formats:
@@ -87,6 +87,10 @@ function formatInput(args,format,images) {
args.splice(0,0,copy(images));
}
}
else if (format[0] == "o_string" && format_i == "l" && args.length == 2) {
if (typeof(args[0]) == "string")
args.splice(0,0,"default");
}
if(args.length == format.length) {
for (i in format) {