Browse Source

Fixes #919

Nicolas Petton 11 years ago
parent
commit
23eff5247c
2 changed files with 22 additions and 0 deletions
  1. 18 0
      src/Helios-Core.js
  2. 4 0
      src/Helios-Core.st

+ 18 - 0
src/Helios-Core.js

@@ -3925,6 +3925,24 @@ referencedClasses: []
 }),
 globals.HLManager);
 
+smalltalk.addMethod(
+smalltalk.method({
+selector: "tabs",
+protocol: 'accessing',
+fn: function (){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
+var $1;
+$1=_st(self._tabsWidget())._tabs();
+return $1;
+}, function($ctx1) {$ctx1.fill(self,"tabs",{},globals.HLManager)})},
+args: [],
+source: "tabs\x0a\x09^ self tabsWidget tabs",
+messageSends: ["tabs", "tabsWidget"],
+referencedClasses: []
+}),
+globals.HLManager);
+
 smalltalk.addMethod(
 smalltalk.method({
 selector: "tabsWidget",

+ 4 - 0
src/Helios-Core.st

@@ -1203,6 +1203,10 @@ tabWidth
 	^ (window asJQuery width - 90) / self tabs size
 !
 
+tabs
+	^ self tabsWidget tabs
+!
+
 tabsWidget
 	^ tabsWidget ifNil: [ tabsWidget := HLTabsWidget new ]
 ! !