Skip to content

Commit c9e2359

Browse files
committed
More formatting changes.
1 parent 8a6a6d0 commit c9e2359

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

compiler.js

+10-7
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ var compiler = (function (parser) {
109109
Object.prototype.lookup = function(selector) {
110110
var me = this;
111111
var myType = me.type;
112-
switch(myType) {
112+
switch (myType) {
113113
case "List":
114114
//Array
115115
return staticLookup("List",me,selector);
@@ -119,7 +119,7 @@ var compiler = (function (parser) {
119119
return staticLookup("String",me,selector);
120120
break;
121121
}
122-
if(this.keys().includes(selector)) {
122+
if (this.keys().includes(selector)) {
123123
return {
124124
get: function () {
125125
return me.get(selector);
@@ -131,9 +131,9 @@ var compiler = (function (parser) {
131131
found: true
132132
};
133133
}
134-
if(this.keys().includes('parent')) {
134+
if (this.keys().includes('parent')) {
135135
var parentSlot = this.get('parent').lookup(selector);
136-
if(parentSlot.found){ return parentSlot; }
136+
if (parentSlot.found){ return parentSlot; }
137137
}
138138
return {
139139
get: function() {
@@ -146,7 +146,8 @@ var compiler = (function (parser) {
146146
found:false
147147
};
148148
};
149-
var staticLookup = function (parnetName,selfValue,selector) {
149+
150+
function staticLookup (parnetName,selfValue,selector) {
150151
var parent = model.getRoot().get('context').lookup(parnetName).get();
151152
if (parent != null) {
152153
var real = parent.lookup(selector).get();
@@ -182,9 +183,11 @@ var compiler = (function (parser) {
182183
} else {
183184
return CreateString('DNU: ' + selector);
184185
}
185-
};
186+
}
186187

187-
Number.prototype.lookup = function(selector){ return staticLookup('Number',this.valueOf(),selector); };
188+
Number.prototype.lookup = function(selector) {
189+
return staticLookup('Number',this.valueOf(),selector);
190+
};
188191

189192
return {
190193
compile: compile,

0 commit comments

Comments
 (0)