[Pkg-javascript-commits] [node-async] 436/480: fix #472, add internal _toString
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-async.
commit 8b4430b7d99cd5e13d4f74a9e3f315ef4c79fb97
Author: fritx <uxfritz at 163.com>
Date: Mon Mar 31 14:32:27 2014 +0800
fix #472, add internal _toString
---
lib/async.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/async.js b/lib/async.js
index bca33c6..40f531d 100755
--- a/lib/async.js
+++ b/lib/async.js
@@ -28,13 +28,15 @@
//// cross-browser compatiblity functions ////
+ var _toString = Object.prototype.toString;
+
var _isArray = Array.isArray || function (obj) {
- return toString.call(obj) === '[object Array]';
+ return _toString.call(obj) === '[object Array]';
};
var _isFunction = function (obj) {
return obj instanceof Function ||
- toString.call(obj) === '[object Function]';
+ _toString.call(obj) === '[object Function]';
};
var _each = function (arr, iterator) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git
More information about the Pkg-javascript-commits
mailing list