76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * Adds a window resize event that has its behavior normalized to fire at the
76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * end of the resize rather than constantly during the resize.
76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * @module event
76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * @submodule event-resize
c958ce410697e4266caafb3a2784b22eed47d3b4Luke Smith * Old firefox fires the window resize event once when the resize action
76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * finishes, other browsers fire the event periodically during the
76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * resize. This code uses timeout logic to simulate the Firefox
76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * behavior in other browsers.
76ca635d61eb3f9fb7c9d788a44fa8b1690aa138Dav Glass * @event windowresize
897862aa336edf25baa6fa5a590bc6bfddc846bfLuke Smith sub._handle = Y.Event.attach('resize', function (e) {
c958ce410697e4266caafb3a2784b22eed47d3b4Luke Smith // interval bumped from 40 to 100ms as of 3.4.1
897862aa336edf25baa6fa5a590bc6bfddc846bfLuke Smith sub._handle = Y.Event.attach('resize', function (e) {
c958ce410697e4266caafb3a2784b22eed47d3b4Luke Smith // delegate methods not defined because this only works for window
c958ce410697e4266caafb3a2784b22eed47d3b4Luke Smith // subscriptions, so...yeah.