Skip to content

Commit

Permalink
Make context work less-disruptively
Browse files Browse the repository at this point in the history
They should be their entirely own system, really... but this'll do for
now.
  • Loading branch information
mcmonkey4eva committed Aug 27, 2013
1 parent 19a582a commit 67acd0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -26,8 +26,8 @@ public class ScriptBuilder {
*/
public static List<ScriptEntry> addObjectToEntries(List<ScriptEntry> scriptEntryList, String key, Object obj) {
for (ScriptEntry entry : scriptEntryList) {
entry.addObject(key, obj);
entry.trackObject(key);
entry.addObject("context_" + key, obj);
entry.trackObject("context_" + key);
}
return scriptEntryList;
}
Expand Down
Expand Up @@ -64,7 +64,7 @@ else if (type.equalsIgnoreCase("NAME")) {
public void getContext(ReplaceableTagEvent event) {
if (!event.matches("context, c") || event.getScriptEntry() == null) return;

String type = event.getType();
String type = "context_" + event.getType();

// First check for entry object context
if (event.getScriptEntry().hasObject(type)) {
Expand Down

0 comments on commit 67acd0a

Please sign in to comment.