summaryrefslogtreecommitdiff
path: root/byob.js
diff options
context:
space:
mode:
Diffstat (limited to 'byob.js')
-rw-r--r--byob.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/byob.js b/byob.js
index a17f976..1277bb6 100644
--- a/byob.js
+++ b/byob.js
@@ -106,7 +106,7 @@ SymbolMorph, isNil*/
// Global stuff ////////////////////////////////////////////////////////
-modules.byob = '2014-Jun-06';
+modules.byob = '2014-September-30';
// Declarations
@@ -227,7 +227,7 @@ CustomBlockDefinition.prototype.blockSpec = function () {
parts = this.parseSpec(this.spec),
spec;
parts.forEach(function (part) {
- if (part[0] === '%') {
+ if (part[0] === '%' && part.length > 1) {
spec = myself.typeOf(part.slice(1));
} else {
spec = part;
@@ -311,7 +311,7 @@ CustomBlockDefinition.prototype.inputNames = function () {
var vNames = [],
parts = this.parseSpec(this.spec);
parts.forEach(function (part) {
- if (part[0] === '%') {
+ if (part[0] === '%' && part.length > 1) {
vNames.push(part.slice(1));
}
});