Permalink
Browse files

Use elation.utils.isArray() to detect arrays of elements for event ha…

…ndling
  • Loading branch information...
James Baicoianu
James Baicoianu committed Jan 19, 2012
1 parent 10d163f commit 6acb283ab1818627cdc4cc59817a060243128f9d
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/utils/htdocs/scripts/events.js
@@ -130,7 +130,7 @@ elation.extend("events", {
var elements = elation.utils.isNull(elements)
? [{}]
- : typeof elements.length != 'number' || elements == window
+ : !elation.utils.isArray(elements) || elements == window
? [ elements ]
: elements,
types = types.split(',');

0 comments on commit 6acb283

Please sign in to comment.