Changeset 11112
- Timestamp:
- 10/25/07 12:08:56 (13 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/_base/lang.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/_base/lang.js
r10659 r11112 10 10 dojo.isArray = function(/*anything*/ it){ 11 11 // summary: Return true if it is an Array 12 return it && it instanceof Array || typeof it == "array" || 13 (dojo.NodeList && it instanceof dojo.NodeList); // Boolean 12 return it && it instanceof Array || typeof it == "array"; // Boolean 14 13 } 15 14 … … 134 133 // A function to be hitched to scope, or the name of the method in 135 134 // scope to be hitched. 136 // usage:135 // examples: 137 136 // dojo.hitch(foo, "bar")(); // runs foo.bar() in the scope of foo 138 137 // dojo.hitch(foo, myFunction); // returns a function that runs myFunction in the scope of foo