[go: nahoru, domu]

Skip to content

Commit

Permalink
move default values from constructor to prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
brigadir committed Dec 19, 2018
1 parent 9762b96 commit 811fd2a
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/js/ui/ui.Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,6 @@ zebkit.package("ui", function(pkg, Class) {
*/
pkg.Tabs = Class(pkg.Panel, pkg.HostDecorativeViews, [
function(o) {
/**
* Selected tab page index
* @attribute selectedIndex
* @type {Integer}
* @readOnly
*/
this.vgap = this.hgap = this.tabAreaX = 0;
this.repaintWidth = this.repaintHeight = this.repaintX = this.repaintY = 0;

this.tabAreaY = this.tabAreaWidth = this.tabAreaHeight = 0;
this.overTab = this.selectedIndex = -1;

this.pages = [];
this.views = {};

Expand Down Expand Up @@ -341,6 +329,20 @@ zebkit.package("ui", function(pkg, Class) {
*/
this.canHaveFocus = true;

/**
* Selected tab page index
* @attribute selectedIndex
* @type {Integer}
* @readOnly
*/
this.selectedIndex = -1;

this.vgap = this.hgap = this.tabAreaX = 0;
this.repaintWidth = this.repaintHeight = this.repaintX = this.repaintY = 0;
this.tabAreaY = this.tabAreaWidth = this.tabAreaHeight = 0;
this.overTab = -1;


/**
* Define pointer moved event handler
* @param {zebkit.ui.event.PointerEvent} e a key event
Expand Down

0 comments on commit 811fd2a

Please sign in to comment.