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
Romain Courteaud
renderjs
Commits
b715d066
Commit
b715d066
authored
Jan 10, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release version 0.28.0
parent
dcc1c854
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2900 additions
and
8 deletions
+2900
-8
dist/renderjs-0.28.0.js
dist/renderjs-0.28.0.js
+2879
-0
dist/renderjs-latest.js
dist/renderjs-latest.js
+20
-7
package.json
package.json
+1
-1
No files found.
dist/renderjs-0.28.0.js
0 → 100644
View file @
b715d066
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/renderjs-latest.js
View file @
b715d066
...
@@ -992,19 +992,32 @@ if (typeof document.contains !== 'function') {
...
@@ -992,19 +992,32 @@ if (typeof document.contains !== 'function') {
this
.
_latest_promise
=
null
;
this
.
_latest_promise
=
null
;
};
};
function
doNothing
()
{
return
;
}
Mutex
.
prototype
=
{
Mutex
.
prototype
=
{
constructor
:
Mutex
,
constructor
:
Mutex
,
lockAndRun
:
function
lockMutexAndRun
(
callback
)
{
lockAndRun
:
function
lockMutexAndRun
(
callback
)
{
var
previous_promise
=
this
.
_latest_promise
;
var
previous_promise
=
this
.
_latest_promise
,
returned_promise
;
if
(
previous_promise
===
null
)
{
if
(
previous_promise
===
null
)
{
this
.
_latest_promise
=
RSVP
.
resolve
(
callback
());
this
.
_latest_promise
=
RSVP
.
resolve
(
callback
());
}
else
{
return
this
.
_latest_promise
;
this
.
_latest_promise
=
this
.
_latest_promise
}
returned_promise
=
previous_promise
.
always
(
function
()
{
.
always
(
function
()
{
return
callback
();
return
callback
();
});
});
}
// Do not return latest promise, to not allow external caller
return
this
.
_latest_promise
;
// to explicitely cancel it,
// ie, ensure next promise is triggered only when ALL previous
// promised are finished (not only the single previous one)
this
.
_latest_promise
=
RSVP
.
all
([
previous_promise
.
always
(
doNothing
),
returned_promise
.
always
(
doNothing
)
]);
return
returned_promise
;
}
}
};
};
...
...
package.json
View file @
b715d066
{
{
"name"
:
"renderjs"
,
"name"
:
"renderjs"
,
"version"
:
"0.2
7
.0"
,
"version"
:
"0.2
8
.0"
,
"description"
:
"RenderJs provides HTML5 gadgets"
,
"description"
:
"RenderJs provides HTML5 gadgets"
,
"main"
:
"dist/renderjs-latest.js"
,
"main"
:
"dist/renderjs-latest.js"
,
"dependencies"
:
{
"dependencies"
:
{
...
...
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