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
91db0a4a
Commit
91db0a4a
authored
Apr 05, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed dependency on $(body). Can be checked externally
parent
587e7e3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
renderjs.js
renderjs.js
+0
-8
No files found.
renderjs.js
View file @
91db0a4a
...
@@ -149,12 +149,6 @@ var RenderJs = (function () {
...
@@ -149,12 +149,6 @@ var RenderJs = (function () {
gadget_js
=
new
RenderJs
.
Gadget
(
gadget_id
,
gadget
);
gadget_js
=
new
RenderJs
.
Gadget
(
gadget_id
,
gadget
);
RenderJs
.
GadgetIndex
.
registerGadget
(
gadget_js
);
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
())
{
if
(
gadget_js
.
isReady
())
{
// avoid loading again gadget which was loaded before in same page
// avoid loading again gadget which was loaded before in same page
return
;
return
;
...
@@ -611,11 +605,9 @@ var RenderJs = (function () {
...
@@ -611,11 +605,9 @@ var RenderJs = (function () {
$
(
this
.
getGadgetList
()).
each
(
$
(
this
.
getGadgetList
()).
each
(
function
(
index
,
value
)
{
function
(
index
,
value
)
{
if
(
value
.
isReady
()
===
false
)
{
if
(
value
.
isReady
()
===
false
)
{
if
(
value
.
dom
.
closest
(
"
body
"
).
length
)
{
result
=
false
;
result
=
false
;
}
}
}
}
}
);
);
return
result
;
return
result
;
}
}
...
...
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