aboutsummaryrefslogtreecommitdiffstats
path: root/source/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/api.js')
-rw-r--r--source/api.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/api.js b/source/api.js
index c8423cf..c401fef 100644
--- a/source/api.js
+++ b/source/api.js
@@ -434,9 +434,21 @@ var api = {
});
},
+ /* HELPERS */
+
formatOsis: function (inOsis) {
var split = inOsis.split(".");
var formatted = split[0] + " " + split[1];
return (split[2]) ? formatted + ":" + split[2] : formatted;
+ },
+
+ extend: function (inTarget) {
+ var sources = [].slice.call(arguments, 1);
+ sources.forEach(function (source) {
+ for (var prop in source) {
+ inTarget[prop] = source[prop];
+ }
+ });
+ return inTarget;
}
}; \ No newline at end of file