Uncaught TypeError: this.boxIntersectsOrientedBox is not a function
krumza

1) in 3.6 i use

var sprite = this.owner.getSprite(0);
var inters = sprite.getOverlappingObjects(false,'oriented');

and its work fine, but t not work in 3.7

2) wade use non passive listeners and it cause console message:

[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

wade use many handlers. may be set all handlers to passive mode?

UPDATE

There is misprint in wade.js current  - (1557 line)

    this.orientedBoxIntersectsBox = function(ob, box)
    {   
        return this.boxIntersectsOrientedBox(box, ob);
    };

but 'this' retutn a window

must be a 'self'

    this.orientedBoxIntersectsBox = function(ob, box)
    {   
        return self.boxIntersectsOrientedBox(box, ob);
    };

 

All 2 Comments
Gio

Hi krumza

Thanks for reporting these issues. We'll release an update next week to fix these and other bugs that have been reported.

In the meantime let us know if you notice anything else that needs fixing please.

Thanks

Gio

The "this.boxIntersectsOrientedBox is not a function" error is now fixed in version 3.7.1.

As for the other problem you mention (passive envent listeners), I looked into it, but we really do need non-passive listeners.

It is not a violation of anything though, don't believe everything that the Chrome console says :) Just because it's the most popular browser, it doesn't mean that the Chrome developers get to decide what is right and what is wrong. Non-passive listeners may be wrong in many cases, but there are legitimate use cases, for example web games.

Post a reply
Add Attachment
Submit Reply
Login to Reply