Skip to content

Commit a22dc2b

Browse files
authored
Merge pull request #87 from visualpython/release
Release v1.1.9 (Hotfix version for 1.1.8)
2 parents 8191b74 + d39f3d3 commit a22dc2b

6 files changed

Lines changed: 21 additions & 13 deletions

File tree

src/api_block/blockContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ define([
26492649
this.hideOptionPreviewBox();
26502650
$(VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_PREVIEW_BUTTON).removeClass('enabled');
26512651

2652-
this.setNavigator(BLOCK_CODELINE_TYPE.NONE, 'Visual Python 1.1.8');
2652+
this.setNavigator(BLOCK_CODELINE_TYPE.NONE, 'Visual Python 1.1.9');
26532653
this.setFocusedPageType(FOCUSED_PAGE_TYPE.BOARD);
26542654
$('.vp-apiblock-option-tab-none').css(STR_DISPLAY, STR_BLOCK);
26552655
}

src/api_block/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
id='vp_apiblock_option_page'>
176176
<div class="vp-apiblock-option-navigator">
177177
<div class="vp-apiblock-option-navigator-label">
178-
<span class="vp-orange-text">Visual Python 1.1.8</span>
178+
<span class="vp-orange-text">Visual Python 1.1.9</span>
179179
</div>
180180
<div class="vp-apiblock-option-new-to-save" title="something modified...">
181181

src/api_block/init.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,22 @@ define([
303303

304304
var createdBlock = blockContainer.getSelectBlock();
305305
if (createdBlock) {
306-
// apply to original block
307-
createdBlock.setState({
308-
apps: {
309-
menu: blockContainer.apps,
310-
code: code,
311-
state: state
312-
}
313-
});
306+
if (title === 'Snippets') {
307+
// set code
308+
createdBlock.setState({
309+
[STATE_codeLine]: code
310+
});
311+
} else if (title === 'Import' || title === 'Variables' || title === 'File'
312+
|| title === 'Instance' || title === 'Chart') {
313+
// apply to original block
314+
createdBlock.setState({
315+
apps: {
316+
menu: blockContainer.apps,
317+
code: code,
318+
state: state
319+
}
320+
});
321+
}
314322
createdBlock.saveState();
315323
} else {
316324
if (title === 'Snippets') {

src/common/constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ define ([
4848
* toolbar btn properties
4949
*/
5050
const TOOLBAR_BTN_INFO = {
51-
HELP: "Visual Python 1.1.8"
51+
HELP: "Visual Python 1.1.9"
5252
// , ICON: "fa-angellist"
5353
, ICON: "vp-main-icon"
5454
, ID: "vpBtnToggle"

src/common/vpFrameEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ define([
563563
var suggestInput = new vpSuggestInputText.vpSuggestInputText();
564564
suggestInput.setComponentID('vp_popupAddApply');
565565
suggestInput.addClass('vp-input vp-popup-apply-lambda');
566-
suggestInput.setSuggestList(function() { return ['x', 'min(x)', 'max(x)', 'sum(x)', 'mean(x)']; });
566+
suggestInput.setSuggestList(function() { return ['x']; });
567567
suggestInput.setValue('x');
568568
suggestInput.setNormalFilter(false);
569569
content.appendFormatLine('<td>{0}</td>', suggestInput.toTagString());

src/file_io/udf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ define([
220220
' return 0.0',
221221
' else:',
222222
' try:',
223-
' result = float(x)',
223+
' result = float(x)',
224224
' return result',
225225
' except ValueError:',
226226
' return 0.0'

0 commit comments

Comments
 (0)