Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thimo Kraemer
KSS
Commits
093633a8
Commit
093633a8
authored
Oct 08, 2018
by
Thimo Kraemer
Browse files
setNodeAttr: remove attribute if value is null
parent
30a04859
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
kss.js
kss.js
+6
-2
kss.min.js
kss.min.js
+2
-2
No files found.
kss.js
View file @
093633a8
/*
* KSS-RPC v0.
9
-beta
* KSS-RPC v0.
10
-beta
*
* Copyright (c) 2017, joonis new media
* Author: Thimo Kraemer <thimo.kraemer@joonis.de>
...
...
@@ -61,7 +61,7 @@
******************************************************************************************/
var
kss
=
{
version
:
'
0.
9
-beta
'
,
version
:
'
0.
10
-beta
'
,
_initialized
:
false
,
_ruleSheets
:
{},
_eventBinders
:
{},
...
...
@@ -1804,6 +1804,10 @@ kss.getNodeAttr = function(node, name, recursive) {
};
kss
.
setNodeAttr
=
function
(
node
,
name
,
value
)
{
if
(
value
===
null
)
{
node
.
removeAttribute
(
name
);
return
;
}
switch
(
name
)
{
case
'
checked
'
:
case
'
selected
'
:
...
...
kss.min.js
View file @
093633a8
This diff is collapsed.
Click to expand it.
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