Skip to content

Commit

Permalink
add Moon.get
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed May 9, 2019
1 parent 7f9e660 commit 1b21a0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/moon/dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,7 @@
Moon.generate = generate;
Moon.compile = compile;
Moon.components = components;
Moon.get = data;
Moon.set = execute;

return Moon;
Expand Down
2 changes: 1 addition & 1 deletion packages/moon/dist/moon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/moon/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { parse } from "./compiler/parser/parser";
import { generate } from "./compiler/generator/generator";
import { compile } from "./compiler/compiler";
import { execute } from "./executor/executor";
import { components, m, setViewCurrent, setViewOld } from "./util/globals";
import { components, data, m, setViewCurrent, setViewOld } from "./util/globals";
import { defaultObject, defaultValue, error, types } from "./util/util";

/**
Expand Down Expand Up @@ -96,4 +96,5 @@ Moon.parse = parse;
Moon.generate = generate;
Moon.compile = compile;
Moon.components = components;
Moon.get = data;
Moon.set = execute;

0 comments on commit 1b21a0f

Please sign in to comment.