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
44fb0e89
Commit
44fb0e89
authored
Dec 04, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renderjs: 0.29.0
parent
0098821d
Pipeline
#31543
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2918 additions
and
15 deletions
+2918
-15
dist/renderjs-0.29.0.js
dist/renderjs-0.29.0.js
+2891
-0
dist/renderjs-latest.js
dist/renderjs-latest.js
+26
-14
package.json
package.json
+1
-1
No files found.
dist/renderjs-0.29.0.js
0 → 100644
View file @
44fb0e89
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/renderjs-latest.js
View file @
44fb0e89
...
...
@@ -300,24 +300,28 @@
postMessage
({
id
:
id
,
callback
:
cbName
,
params
:
v
});
},
error
:
function
(
error
,
message
)
{
completed
=
true
;
// verify in table
if
(
!
inTbl
[
id
])
throw
"
error called for nonexistent message:
"
+
id
;
// remove transaction from table
delete
inTbl
[
id
];
// send error
postMessage
({
id
:
id
,
error
:
error
,
message
:
message
});
completed
=
true
;
// remove transaction from table
delete
inTbl
[
id
];
},
complete
:
function
(
v
)
{
completed
=
true
;
// verify in table
if
(
!
inTbl
[
id
])
throw
"
complete called for nonexistent message:
"
+
id
;
// remove transaction from table
delete
inTbl
[
id
];
// send complete
postMessage
({
id
:
id
,
result
:
v
});
completed
=
true
;
// remove transaction from table
delete
inTbl
[
id
];
},
delayReturn
:
function
(
delay
)
{
if
(
typeof
delay
===
'
boolean
'
)
{
...
...
@@ -2785,10 +2789,11 @@ if (typeof document.contains !== 'function') {
local_transaction_dict
[
transaction_id
]
=
root_gadget
[
v
[
0
]].
apply
(
root_gadget
,
v
[
1
])
.
push
(
function
handleMethodCallSuccess
()
{
trans
.
complete
.
apply
(
trans
,
arguments
);
// drop the promise reference, to allow garbage collection
delete
local_transaction_dict
[
transaction_id
];
trans
.
complete
.
apply
(
trans
,
arguments
);
}
,
function
handleMethodCallError
(
e
)
{
})
.
push
(
undefined
,
function
handleMethodCallError
(
e
)
{
var
error_type
=
convertObjectToErrorType
(
e
),
message
;
if
(
e
instanceof
Error
)
{
...
...
@@ -2800,12 +2805,19 @@ if (typeof document.contains !== 'function') {
}
else
{
message
=
e
;
}
// drop the promise reference, to allow garbage collection
delete
local_transaction_dict
[
transaction_id
];
try
{
trans
.
error
({
type
:
error_type
,
msg
:
message
});
}
catch
(
new_error
)
{
trans
.
error
({
type
:
convertObjectToErrorType
(
new_error
),
msg
:
new_error
.
toString
()
});
}
// drop the promise reference, to allow garbage collection
delete
local_transaction_dict
[
transaction_id
];
});
trans
.
delayReturn
(
true
);
});
...
...
package.json
View file @
44fb0e89
{
"name"
:
"renderjs"
,
"version"
:
"0.2
8
.0"
,
"version"
:
"0.2
9
.0"
,
"description"
:
"RenderJs provides HTML5 gadgets"
,
"main"
:
"dist/renderjs-latest.js"
,
"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