Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
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
Boris Kocherov
rjs_json_form
Commits
16494021
Commit
16494021
authored
Sep 03, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tv4: disable alerts in jslint/jshint
parent
704e691d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
jsonform/tv4.js
jsonform/tv4.js
+8
-1
No files found.
jsonform/tv4.js
View file @
16494021
...
...
@@ -6,7 +6,11 @@ This code is released into the "public domain" by its author(s). Anybody may us
If you find a bug or make an improvement, it would be courteous to let the author know, but it is not compulsory.
*/
/*global module, define*/
/*jslint indent: 2, white: true*/
/*jshint -W014: true, -W089: true, -W084: true, -W069: true*/
(
function
(
global
,
factory
)
{
"
use strict
"
;
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
// AMD. Register as an anonymous module.
define
([],
factory
);
...
...
@@ -18,6 +22,7 @@ If you find a bug or make an improvement, it would be courteous to let the autho
global
.
tv4
=
factory
();
}
}(
this
,
function
()
{
"
use strict
"
;
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FObject%2Fkeys
if
(
!
Object
.
keys
)
{
...
...
@@ -82,6 +87,7 @@ if(!Array.isArray) {
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FArray%2FindexOf
if
(
!
Array
.
prototype
.
indexOf
)
{
Array
.
prototype
.
indexOf
=
function
(
searchElement
/*, fromIndex */
)
{
/*jslint bitwise: true */
if
(
this
===
null
)
{
throw
new
TypeError
();
}
...
...
@@ -262,7 +268,7 @@ function uriTemplateSubstitution(spec) {
result
+=
"
=
"
;
}
}
if
(
varSpec
.
truncate
!=
null
)
{
if
(
varSpec
.
truncate
!=
=
null
)
{
value
=
value
.
substring
(
0
,
varSpec
.
truncate
);
}
result
+=
shouldEscape
?
encodeURIComponent
(
value
).
replace
(
/!/g
,
"
%21
"
):
notReallyPercentEncode
(
value
);
...
...
@@ -1515,6 +1521,7 @@ function ValidationError(code, params, dataPath, schemaPath, subErrors) {
var
err
=
new
Error
(
this
.
message
);
this
.
stack
=
err
.
stack
||
err
.
stacktrace
;
if
(
!
this
.
stack
)
{
/*jshint -W002: true*/
try
{
throw
err
;
}
...
...
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