aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorIgor Minar2011-08-05 16:24:12 -0700
committerIgor Minar2011-08-06 01:54:06 -0700
commit06835a462afc7105532e13abdd5217314b3ae71e (patch)
treeeef3f670482fb1061f99ce12228f687051cca1c5 /src/Angular.js
parent142cffcf64d2dce93089e9a73257bddf50e96990 (diff)
downloadangular.js-06835a462afc7105532e13abdd5217314b3ae71e.tar.bz2
style($function): replace $function with 'function'
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Angular.js b/src/Angular.js
index f876dde0..d698aa11 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -64,7 +64,6 @@ var _undefined = undefined,
$console = 'console',
$date = 'date',
$display = 'display',
- $function = 'function',
$length = 'length',
$name = 'name',
$noop = 'noop',
@@ -420,7 +419,7 @@ function isArray(value) { return value instanceof Array; }
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Function`.
*/
-function isFunction(value){ return typeof value == $function;}
+function isFunction(value){ return typeof value == 'function';}
/**
@@ -819,7 +818,7 @@ function sliceArgs(args, startIndex) {
*/
function bind(self, fn) {
var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];
- if (typeof fn == $function && !(fn instanceof RegExp)) {
+ if (isFunction(fn) && !(fn instanceof RegExp)) {
return curryArgs.length
? function() {
return arguments.length