mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Misc cleanup.
This commit is contained in:
@@ -219,7 +219,7 @@ Blockly.unbindEvent_ = function(bindData) {
|
||||
* Don't do anything for this event, just halt propagation.
|
||||
* @param {!Event} e An event.
|
||||
*/
|
||||
Blockly.noEvent = function(e) {
|
||||
Blockly.utils.noEvent = function(e) {
|
||||
// This event has been handled. No need to bubble up to the document.
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
@@ -561,7 +561,7 @@ Blockly.genUid.soup_ = '!#$%()*+,-./:;=?@[]^_`{|}~' +
|
||||
Blockly.utils.wrap = function(text, limit) {
|
||||
var lines = text.split('\n');
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
lines[i] = Blockly.utils.wrap_line_(lines[i], limit);
|
||||
lines[i] = Blockly.utils.wrapLine_(lines[i], limit);
|
||||
}
|
||||
return lines.join('\n');
|
||||
};
|
||||
@@ -573,7 +573,7 @@ Blockly.utils.wrap = function(text, limit) {
|
||||
* @return {string} Wrapped text.
|
||||
* @private
|
||||
*/
|
||||
Blockly.utils.wrap_line_ = function(text, limit) {
|
||||
Blockly.utils.wrapLine_ = function(text, limit) {
|
||||
if (text.length <= limit) {
|
||||
// Short text, no need to wrap.
|
||||
return text;
|
||||
|
||||
Reference in New Issue
Block a user