Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
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
Hide 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 () {
this
.
id
=
gadget_id
;
this
.
dom
=
dom
;
this
.
is_ready
=
false
;
// set enhanced flag
this
.
is_enhanced
=
false
;
this
.
getId
=
function
()
{
return
this
.
id
;
...
...
@@ -451,11 +453,26 @@ var RenderJs = (function () {
return
this
.
is_ready
;
};
this
.
setReady
=
function
()
{
this
.
setReady
=
function
(
value
)
{
/*
* 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
()
{
...
...
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