Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e789fac8
Commit
e789fac8
authored
Aug 09, 2017
by
yann300
Committed by
GitHub
Aug 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update best-practices.md
parent
2da388f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
best-practices.md
best-practices.md
+2
-1
No files found.
best-practices.md
View file @
e789fac8
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
-
`self._api = opts.api`
`opts.api`
is an object which contains functions/features that the module needs.
-
`self._api = opts.api`
`opts.api`
is an object which contains functions/features that the module needs.
-
`opts.events`
contains events manager the module will listen on.
-
`opts.events`
contains events manager the module will listen on.
-
A module trigger events using
`event`
property:
-
A module trigger events using
`event`
property:
`self.event = new EventManager()`
. Events can then be triggered:
`self.event = new EventManager()`
.
Events can then be triggered:
`self.event.trigger('eventName', [param1, param2])`
`self.event.trigger('eventName', [param1, param2])`
-
`self._view`
is the HTML view renderered by
`yo-yo`
in the
`render`
function.
-
`self._view`
is the HTML view renderered by
`yo-yo`
in the
`render`
function.
-
`render()`
this function should be called:
-
`render()`
this function should be called:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment