simulate-event
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "simulate-event", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A library for triggering DOM events.", | ||
@@ -5,0 +5,0 @@ "main": "simulate-event.js", |
@@ -308,2 +308,10 @@ var extend = require('xtend') | ||
// Extend a new object with the default and passed in options. | ||
if (!(options instanceof window.Event)) { | ||
options = extend({ | ||
bubbles: true, | ||
cancelable: true | ||
}, eventOptions[eventType](type, options), options) | ||
} | ||
// Attempt the Event Constructors DOM API. | ||
@@ -339,8 +347,2 @@ var Constructor = eventConstructors[eventType] | ||
// Extend a new object with the default and passed in options. | ||
options = extend({ | ||
bubbles: true, | ||
cancelable: true | ||
}, eventOptions[eventType](type, options), options) | ||
// In < IE9, the `createEvent` function is not available and we have to | ||
@@ -347,0 +349,0 @@ // resort to using `fireEvent`. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13565
390