This project is archived and is in readonly mode.

#97 ✓invalid
ryancr

window.getScrollSize doesn't work

Reported by ryancr | June 5th, 2008 @ 07:41 PM | in 1.2.1

'get' is undefined, trunk build 1555

/ *Script: Element.Dimensions.js */

(function(){

var get = {

[....]

}

})();

removing the var from inside the function allowed the script to work correctly.

/ *Script: Element.Dimensions.js */

var get = {};

(function(){

get = {

[....]

}

})();

Comments and changes to this ticket

  • Jan Kassens

    Jan Kassens June 5th, 2008 @ 08:51 PM

    • Milestone changed from 2.0 to 1.2.0
    • State changed from “new” to “invalid”

    please provide a testpage or example code. i think you've got something wrong in your code.

    reopen if you have a testcase.

  • ryancr

    ryancr June 6th, 2008 @ 05:52 AM

    Using rev 1555 from http://edge.mootools.net/build with everything selected

    and this code:

    window.addEvent('domready', function() {

    fooBar.init();

    });

    var fooBar = {

    init: function() {

    window.getScrollSize();

    }

    }

    Firebug returns:

    get is not defined

    return get.full(html);

  • Jan Kassens

    Jan Kassens June 6th, 2008 @ 06:52 PM

    • State changed from “invalid” to “open”
    • Assigned user changed from “Valerio” to “Jan Kassens”
    • Title changed from “'get' object scope” to “window.getScrollSize doesn't work”

    window.getScrollSize is out of the scope of the get helper object. i'll patch shortly.

  • Jan Kassens

    Jan Kassens June 11th, 2008 @ 08:23 AM

    • Milestone changed from 1.2.0 to 1.2.1
  • Jan Kassens

    Jan Kassens June 13th, 2008 @ 12:03 PM

    • State changed from “open” to “invalid”

    works in 1.2.0

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages