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
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
Gabriel Monnerat
renderjs
Commits
f7281a1e
Commit
f7281a1e
authored
Jan 16, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JSlint: check more files
parent
330bfff9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
Gruntfile.js
Gruntfile.js
+4
-1
test/inject_script.js
test/inject_script.js
+13
-11
test/not_declared_gadget.js
test/not_declared_gadget.js
+4
-3
No files found.
Gruntfile.js
View file @
f7281a1e
...
...
@@ -73,7 +73,10 @@ module.exports = function (grunt) {
}
},
test
:
{
src
:
[
'
test/embedded.js
'
,
'
test/renderjs_test.js
'
],
src
:
[
'
test/embedded.js
'
,
'
test/renderjs_test.js
'
,
'
test/embedded.js
'
,
'
test/inject_script.js
'
,
'
test/not_declared_gadget.js
'
,
'
test/trigger_rjsready_event_on_ready_gadget.js
'
],
directives
:
{
maxlen
:
79
,
indent
:
2
,
...
...
test/inject_script.js
View file @
f7281a1e
/*jslint nomen: true*/
(
function
(
document
)
{
"
use strict
"
;
// can't use RSVP here because its not loaded (neccessarily)
function
inject_script
(
src
,
resolve
)
{
// inject RSVP
var
script
=
document
.
createElement
(
"
script
"
);
script
.
onload
=
function
()
{
resolve
();
// can't use RSVP here because its not loaded (neccessarily)
window
.
inject_script
=
function
(
src
,
resolve
)
{
// inject RSVP
var
script
=
document
.
createElement
(
"
script
"
);
script
.
onload
=
function
()
{
resolve
();
};
script
.
src
=
src
;
document
.
head
.
appendChild
(
script
);
};
script
.
src
=
src
;
document
.
head
.
appendChild
(
script
);
}
}(
document
));
\ No newline at end of file
test/not_declared_gadget.js
View file @
f7281a1e
...
...
@@ -20,15 +20,16 @@
.
declareMethod
(
'
checkAcquisitionError
'
,
function
()
{
var
g
=
this
;
return
g
.
willFail
()
.
push
(
undefined
,
function
(
e
)
{
.
push
(
undefined
,
function
(
e
)
{
g
.
props
.
element
.
querySelector
(
'
.acquisitionError
'
)
.
innerHTML
=
e
;
.
innerHTML
=
e
;
});
})
.
declareMethod
(
'
checkKlass
'
,
function
()
{
var
g
=
this
;
g
.
props
.
element
.
querySelector
(
'
.klass
'
)
.
innerHTML
=
"
klass
"
+
((
g
instanceof
window
.
__RenderJSEmbeddedGadget
)?
"
= embedded
"
:
"
!= embedded
"
);
((
g
instanceof
window
.
__RenderJSEmbeddedGadget
)
?
"
= embedded
"
:
"
!= embedded
"
);
});
}(
window
,
rJS
));
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