Skip to content

Commit c3cb07a

Browse files
committed
Fixed readme entry related to setTimeout
Also: - Added a warning. - Slightly modified some warning text.
1 parent 89998c9 commit c3cb07a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ mlapptools.setStyle(myGUI.TextArea, 'background-image',...
338338
-----------------
339339
<a name="setTimeout"></a>
340340

341-
#### *mlapptools*.**setTimeout**(*hUIFig*)
341+
#### *mlapptools*.**setTimeout**(*hUIFig*, *newTimeoutInSec*)
342342

343343
##### Description
344344

mlapptools.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
%
88
% aboutJSLibs - Return version information about certain JS libraries.
99
% addClasses - Add specified CSS classes to one or more DOM nodes.
10-
% addCssToHead - Inject inline CSS into the <head> section of the figure's HTML.
10+
% addToHead - Inject inline CSS/JS into the <head> section of the figure's HTML.
1111
% fontColor - Modify font color.
1212
% fontWeight - Modify font weight.
1313
% getHTML - Return the full HTML code of a uifigure.
@@ -104,11 +104,11 @@ function addToHead(hWin, nodeText)
104104
if isfile(nodeText)
105105
warning(['Files are not supported at this time.'...
106106
' Please provide a "stringified" input instead.'...
107-
'\nInput can be "<style ...></style>" or "<script ...></script>".'],[]);
107+
'\nInput can be "<style>...</style>" or "<script>...</script>".'],[]);
108108
elseif ~isempty(regexpi(nodeText,'http(s)?://'))
109109
warning(['Remote files are not supported at this time.',...
110110
' Please provide a "stringified" input instead.'...
111-
'\nInput can be "<style ...></style>" or "<script ...></script>".'],[]);
111+
'\nInput can be "<style>...</style>" or "<script>...</script>".'],[]);
112112
end
113113

114114
% Inject the nodeText:
@@ -766,7 +766,7 @@ function unlockUIFig(hUIFig)
766766
warning('off',OJF);
767767
warning('off',SOO);
768768
otherwise
769-
% Do nothing
769+
warning(['Unrecognized option "' toggleStr '". Please use either "on" or "off".']);
770770
end
771771
end % toggleWarnings
772772

0 commit comments

Comments
 (0)