Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uritemplate-js
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
uritemplate-js
Commits
69c0af3d
Commit
69c0af3d
authored
Jan 04, 2016
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not freeze RegExp.
For some reason, recent Firefox prevent using frozen regexp.
parent
65066a88
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
bin/uritemplate-min.js
bin/uritemplate-min.js
+1
-1
bin/uritemplate.js
bin/uritemplate.js
+1
-1
src/objectHelper.js
src/objectHelper.js
+1
-1
No files found.
bin/uritemplate-min.js
View file @
69c0af3d
This diff is collapsed.
Click to expand it.
bin/uritemplate.js
View file @
69c0af3d
...
@@ -92,7 +92,7 @@ var objectHelper = (function () {
...
@@ -92,7 +92,7 @@ var objectHelper = (function () {
if
(
object
.
hasOwnProperty
(
propertyName
))
{
if
(
object
.
hasOwnProperty
(
propertyName
))
{
property
=
object
[
propertyName
];
property
=
object
[
propertyName
];
// be aware, arrays are 'object', too
// be aware, arrays are 'object', too
if
(
typeof
property
===
"
object
"
)
{
if
(
(
typeof
property
===
"
object
"
)
&&
!
(
property
instanceof
RegExp
)
)
{
deepFreeze
(
property
);
deepFreeze
(
property
);
}
}
}
}
...
...
src/objectHelper.js
View file @
69c0af3d
...
@@ -66,7 +66,7 @@ var objectHelper = (function () {
...
@@ -66,7 +66,7 @@ var objectHelper = (function () {
if
(
object
.
hasOwnProperty
(
propertyName
))
{
if
(
object
.
hasOwnProperty
(
propertyName
))
{
property
=
object
[
propertyName
];
property
=
object
[
propertyName
];
// be aware, arrays are 'object', too
// be aware, arrays are 'object', too
if
(
typeof
property
===
"
object
"
)
{
if
(
(
typeof
property
===
"
object
"
)
&&
!
(
property
instanceof
RegExp
)
)
{
deepFreeze
(
property
);
deepFreeze
(
property
);
}
}
}
}
...
...
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