Skip to content

Commit

Permalink
Use original Ext.ux namespace for Spinner, SpinnerField classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Bertrand committed May 15, 2015
1 parent b30005a commit bb660b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/script/spinner/Spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
Build date: 2013-04-03 15:07:25
*/

Ext.namespace("gxp");
Ext.ns('Ext.ux');

/**
* @class gxp.Spinner
* @class Ext.ux.Spinner
* @extends Ext.util.Observable
* Creates a Spinner control utilized by gxp.SpinnerField
* Creates a Spinner control utilized by Ext.ux.form.SpinnerField
*/
gxp.Spinner = Ext.extend(Ext.util.Observable, {
Ext.ux.Spinner = Ext.extend(Ext.util.Observable, {
incrementValue: 1,
alternateIncrementValue: 5,
triggerClass: 'x-form-spinner-trigger',
Expand All @@ -36,7 +36,7 @@ gxp.Spinner = Ext.extend(Ext.util.Observable, {
accelerate: false,

constructor: function(config){
gxp.Spinner.superclass.constructor.call(this, config);
Ext.ux.Spinner.superclass.constructor.call(this, config);
Ext.apply(this, config);
this.mimicing = false;
},
Expand Down
10 changes: 5 additions & 5 deletions src/script/spinner/SpinnerField.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
Build date: 2013-04-03 15:07:25
*/

Ext.namespace("gxp");
Ext.ns('Ext.ux.form');

/**
* @class Ext.ux.form.SpinnerField
* @extends Ext.form.NumberField
* Creates a field utilizing Ext.ux.Spinner
* @xtype spinnerfield
*/
gxp.SpinnerField = Ext.extend(Ext.form.NumberField, {
Ext.ux.form.SpinnerField = Ext.extend(Ext.form.NumberField, {
actionMode: 'wrap',
deferHeight: true,
autoSize: Ext.emptyFn,
Expand All @@ -37,15 +37,15 @@ gxp.SpinnerField = Ext.extend(Ext.form.NumberField, {
constructor: function(config) {
var spinnerConfig = Ext.copyTo({}, config, 'incrementValue,alternateIncrementValue,accelerate,defaultValue,triggerClass,splitterClass');

var spl = this.spinner = new gxp.Spinner(spinnerConfig);
var spl = this.spinner = new Ext.ux.Spinner(spinnerConfig);

var plugins = config.plugins
? (Ext.isArray(config.plugins)
? config.plugins.push(spl)
: [config.plugins, spl])
: spl;

gxp.SpinnerField.superclass.constructor.call(this, Ext.apply(config, {plugins: plugins}));
Ext.ux.form.SpinnerField.superclass.constructor.call(this, Ext.apply(config, {plugins: plugins}));
},

// private
Expand All @@ -70,5 +70,5 @@ gxp.SpinnerField = Ext.extend(Ext.form.NumberField, {
}
});

Ext.reg('spinnerfield', gxp.SpinnerField);
Ext.reg('spinnerfield', Ext.ux.form.SpinnerField);

2 changes: 1 addition & 1 deletion src/script/widgets/ClassificationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ gxp.ClassificationPanel = Ext.extend(Ext.Panel, {



var classNumSelector = new gxp.SpinnerField({
var classNumSelector = new Ext.ux.form.SpinnerField({
fieldLabel: 'Classes',
id: "choropleth_classes",
minValue: 2,
Expand Down

0 comments on commit bb660b2

Please sign in to comment.