Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
lib-ical
Commits
833a86a4
Commit
833a86a4
authored
Jan 24, 2016
by
Sebastian
Browse files
code style changes
parent
1a85edc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/_tools.js
View file @
833a86a4
...
...
@@ -106,7 +106,9 @@ module.exports.toJSON = function(object, attributes, options) {
return
;
}
var
value
=
object
[
attribute
]();
var
value
=
object
[
attribute
](),
newObj
;
if
(
options
.
hooks
[
attribute
])
{
value
=
options
.
hooks
[
attribute
](
value
);
}
...
...
@@ -117,7 +119,7 @@ module.exports.toJSON = function(object, attributes, options) {
result
[
attribute
]
=
value
;
if
(
Array
.
isArray
(
result
[
attribute
]))
{
var
newObj
=
[];
newObj
=
[];
result
[
attribute
].
forEach
(
function
(
object
)
{
newObj
.
push
(
object
.
toJSON
());
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment