partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit dec280ead9a7c37260b0e2b811e134209355a8d1
parent 9cf671168d1af51f6084a362175d527ad0cd7954
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue, 10 Jul 2012 20:04:44 +0200

Fixes for ExtJS 4.1

Diffstat:
Msrc/setup/js/SetupTests/AbstractTest.js | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/setup/js/SetupTests/AbstractTest.js b/src/setup/js/SetupTests/AbstractTest.js @@ -4,7 +4,9 @@ * Calls a specific PHP file on the server via AJAX and interprets the response. */ Ext.define('PartKeeprSetup.AbstractTest', { - extend: 'Ext.util.Observable', + mixins: { + observable: 'Ext.util.Observable' + }, /** * Defines the URL to call @@ -46,10 +48,10 @@ Ext.define('PartKeeprSetup.AbstractTest', { /** * Constructs the test */ - constructor: function () { - this.addEvents({ - "complete" : true - }); + constructor: function (config) { + this.mixins.observable.constructor.call(this, config); + + this.addEvents("complete"); }, /** * Runs a given test, and processes the response