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
22c080ea
Commit
22c080ea
authored
Feb 28, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gadget: allow set_ready(false), added is_enhanced property
parent
a8f1951c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
renderjs.js
renderjs.js
+19
-2
No files found.
renderjs.js
View file @
22c080ea
...
@@ -435,6 +435,8 @@ var RenderJs = (function () {
...
@@ -435,6 +435,8 @@ var RenderJs = (function () {
this
.
id
=
gadget_id
;
this
.
id
=
gadget_id
;
this
.
dom
=
dom
;
this
.
dom
=
dom
;
this
.
is_ready
=
false
;
this
.
is_ready
=
false
;
// set enhanced flag
this
.
is_enhanced
=
false
;
this
.
getId
=
function
()
{
this
.
getId
=
function
()
{
return
this
.
id
;
return
this
.
id
;
...
@@ -451,11 +453,26 @@ var RenderJs = (function () {
...
@@ -451,11 +453,26 @@ var RenderJs = (function () {
return
this
.
is_ready
;
return
this
.
is_ready
;
};
};
this
.
setReady
=
function
()
{
this
.
setReady
=
function
(
value
)
{
/*
/*
* Return True if remote gadget is loaded into DOM.
* Return True if remote gadget is loaded into DOM.
*/
*/
this
.
is_ready
=
true
;
// allow to set to false, when removing gadget from DOM
this
.
is_ready
=
value
===
undefined
?
true
:
value
;
};
this
.
isEnhanced
=
function
()
{
/*
* Return True if remote gadget has been enhanced
*/
return
this
.
is_enhanced
;
};
this
.
setEnhanced
=
function
(
value
)
{
/*
* Update enhancment status
*/
this
.
is_enhanced
=
value
;
};
};
this
.
remove
=
function
()
{
this
.
remove
=
function
()
{
...
...
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