Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
be4805e3
Commit
be4805e3
authored
Aug 10, 2015
by
Neil Fraser
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #151 from AllisonLamm/master
adding type annotations
parents
7a5580b3
6070b947
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
core/css.js
core/css.js
+1
-1
core/field_textinput.js
core/field_textinput.js
+2
-1
No files found.
core/css.js
View file @
be4805e3
...
...
@@ -92,7 +92,7 @@ Blockly.Css.inject = function(hasCss, pathToMedia) {
/**
* Set the cursor to be displayed when over something draggable.
* @param {Blockly.Cursor} cursor Enum.
* @param {Blockly.C
ss.C
ursor} cursor Enum.
*/
Blockly
.
Css
.
setCursor
=
function
(
cursor
)
{
if
(
Blockly
.
Css
.
currentCursor_
==
cursor
)
{
...
...
core/field_textinput.js
View file @
be4805e3
...
...
@@ -126,6 +126,7 @@ Blockly.FieldTextInput.prototype.showEditor_ = function(opt_quietInput) {
// Create the input.
var
htmlInput
=
goog
.
dom
.
createDom
(
'
input
'
,
'
blocklyHtmlInput
'
);
htmlInput
.
setAttribute
(
'
spellcheck
'
,
this
.
spellcheck_
);
/** @type {!HTMLInputElement} */
Blockly
.
FieldTextInput
.
htmlInput_
=
htmlInput
;
div
.
appendChild
(
htmlInput
);
...
...
@@ -200,7 +201,7 @@ Blockly.FieldTextInput.prototype.onHtmlInputChange_ = function(e) {
Blockly
.
FieldTextInput
.
prototype
.
validate_
=
function
()
{
var
valid
=
true
;
goog
.
asserts
.
assertObject
(
Blockly
.
FieldTextInput
.
htmlInput_
);
var
htmlInput
=
/** @type {!Element} */
(
Blockly
.
FieldTextInput
.
htmlInput_
)
;
var
htmlInput
=
Blockly
.
FieldTextInput
.
htmlInput_
;
if
(
this
.
sourceBlock_
&&
this
.
changeHandler_
)
{
valid
=
this
.
changeHandler_
(
htmlInput
.
value
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment