Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
grunt-monty-python
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
22f587dd
authored
2016-05-25 10:33:47 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
s/fNOP/NOP/, to fix a warning from jshint.
1 parent
6b4681bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
22f587d
...
...
@@ -432,16 +432,16 @@ module.exports = function (grunt) {
var
aArgs
=
Array
.
prototype
.
slice
.
call
(
arguments
,
1
),
fToBind
=
this
,
f
NOP
=
function
()
{},
NOP
=
function
()
{},
fBound
=
function
()
{
return
fToBind
.
apply
(
this
,
aArgs
.
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)));
};
if
(
this
.
prototype
)
{
// Function.prototype doesn't have a prototype property
f
NOP
.
prototype
=
this
.
prototype
;
NOP
.
prototype
=
this
.
prototype
;
}
fBound
.
prototype
=
new
f
NOP
();
fBound
.
prototype
=
new
NOP
();
return
fBound
;
};
...
...
Please
register
or
sign in
to post a comment