mirror of
https://github.com/google/blockly.git
synced 2026-01-12 03:17:09 +01:00
* fix: loading messages in the browser * chore: fix comment * fix: change unwrapped message files to write to a new object, rather than Blockly.Msg * fix: fixup exports * fix: PR comments * fix: change to use for-in loop * fix: ES6 compatibility and formatting
17 lines
432 B
Plaintext
17 lines
432 B
Plaintext
/* eslint-disable */
|
|
;(function(root, factory) {
|
|
if (typeof define === 'function' && define.amd) { // AMD
|
|
define(<%= amd %>, factory);
|
|
} else if (typeof exports === 'object') { // Node.js
|
|
module.exports = factory();
|
|
} else { // Browser
|
|
var messages = factory();
|
|
for (var key in messages) {
|
|
root.<%= namespace %>[key] = messages[key];
|
|
}
|
|
}
|
|
}(this, function() {
|
|
<%= contents %>
|
|
return messages;
|
|
}));
|