diff options
author | zefanja <zefanja@freenet.de> | 2014-04-08 20:47:51 +0700 |
---|---|---|
committer | zefanja <zefanja@freenet.de> | 2014-04-08 20:47:51 +0700 |
commit | a47aa218c6dfc936305a3e1d4175532512b7829b (patch) | |
tree | 70347ae56d9a4876b6f8057b74e502b373442fc4 /source/api.js | |
parent | c56319b2e226b01deb938542050cd0f43b575190 (diff) | |
download | biblez-ng-a47aa218c6dfc936305a3e1d4175532512b7829b.tar.gz |
* fixed userData handling for new verseView
* fixed bug with wring chapter numbers
Diffstat (limited to 'source/api.js')
-rw-r--r-- | source/api.js | 12 |
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 |