/*

Siesta 5.1.0
Copyright(c) 2009-2018 Bryntum AB
https://bryntum.com/contact
https://bryntum.com/products/siesta/license

*/
/**
@class Siesta.Test.Browser.Role.CanRebindJQueryContext

*/
Role('Siesta.Test.Browser.Role.CanRebindJQueryContext', {

    methods : {

        /**
         * This method rebinds jQuery context to a test page. It can be used as "normal" jQuery:
         *

            this.$('.cssSelector').setWidth(100)

         *
         */
        $ : function () {
            var local$ = $.rebindWindowContext(this.global);
            return local$.apply(this.global, arguments);
        }
    }
});