Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
renderjs
Commits
41ac1e01
Commit
41ac1e01
authored
Mar 25, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loadGadget: added check to update DOM when reloading gadget
parent
ca08017b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
renderjs.js
renderjs.js
+5
-0
No files found.
renderjs.js
View file @
41ac1e01
...
...
@@ -150,6 +150,11 @@ var RenderJs = (function () {
RenderJs
.
GadgetIndex
.
registerGadget
(
gadget_js
);
}
// update gadget.dom if it's contents are not in the document
if
(
!
gadget_js
.
dom
.
closest
(
"
body
"
).
length
)
{
gadget_js
.
dom
=
gadget
;
}
if
(
gadget_js
.
isReady
())
{
// avoid loading again gadget which was loaded before in same page
return
;
...
...
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