amended windowEvents param setup

Fixed an issue with the `windowEvents` parameter setup. When `init` was called with `windowEvents:false` it would be turned into `true` using the `||` operator.