Finish pullups for RC2.
#1498 Easily turning off/overriding default select and temporary intent styles #1501 GeoRSS format tests fail in Safari #1502 Events register method fails if listeners member is not an array #1503 panning off for odd-sized viewport #1504 doc review git-svn-id: http://svn.openlayers.org/branches/openlayers/2.6@6835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -532,7 +532,9 @@ OpenLayers.Events = OpenLayers.Class({
|
||||
*/
|
||||
register: function (type, obj, func) {
|
||||
|
||||
if (func != null) {
|
||||
if (func != null &&
|
||||
((this.eventTypes && OpenLayers.Util.indexOf(this.eventTypes, type) != -1) ||
|
||||
OpenLayers.Util.indexOf(this.BROWSER_EVENTS, type) != -1)) {
|
||||
if (obj == null) {
|
||||
obj = this.object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user