Skip to content
Advertisement

JQueryUI resizestop event not bubbling with helper

I am using Backbone View events to listen for JQueryUI’s resizestop. This worked with JQuery 1.6.4, but not with 1.7.1. It seems to only be an issue with the resize helper on.

This is a super-specific bug, so the question is how does one debug such things?

edit Simplified test, without Backbone: http://jsfiddle.net/forresto/yXvmv/

Advertisement

Answer

That’s weird that it’s only happening with jQuery 1.7.1 and Backbone combined.

I don’t know what the root cause is, but I was able to figure out a workaround by updating your call to resizable in the initialize method

this.$(".withhelper")
    .resizable({
        helper: "ui-resizable-helper",
          stop: this.resizestop
      });

Here’s the full example: http://jsfiddle.net/paulyoder/jauRx/8/

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement