UNPKG
l7hammerjs
Version:
latest (0.0.8)
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A javascript library for multi-touch gestures
github.com/hammerjs/hammer.js
hammerjs/hammer.js
l7hammerjs
/
src
/
utils
/
bind-fn.js
13 lines
(12 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** *
@private
* simple function bind *
@param
{
Function
}
fn
*
@param
{
Object
}
context
*
@returns
{
Function
} */
export
default
function
bindFn
(
fn, context
) {
return
function
boundFn
(
) {
return
fn.
apply
(context,
arguments
); }; }