Permalink
Browse files

Default options should not be compromised. Duh.

  • Loading branch information...
1 parent f4a5aa9 commit 08510690d27b8660c85830a69e4154ee6f808598 Juriy Zaytsev committed Apr 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 event.simulate.js
View
@@ -27,7 +27,7 @@
}
Event.simulate = function(element, eventName) {
- var options = Object.extend(defaultOptions, arguments[2] || { });
+ var options = Object.extend(Object.clone(defaultOptions), arguments[2] || { });
var oEvent, eventType = null;
element = $(element);

0 comments on commit 0851069

Please sign in to comment.