Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
renderjs
Commits
25bd1e4d
Commit
25bd1e4d
authored
Apr 19, 2013
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to produce documentation out of code comments (work in progress).
parent
d5500b31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
5 deletions
+33
-5
Makefile
Makefile
+3
-0
renderjs.js
renderjs.js
+30
-5
No files found.
Makefile
View file @
25bd1e4d
...
...
@@ -6,6 +6,7 @@ RENDERJS_MIN = renderjs.min.js
UGLIFY_CMD
=
$(
shell
which uglifyjs
||
echo
node ~/node_modules/uglify-js/bin/uglifyjs
)
# npm install jslint
LINT_CMD
=
$(
shell
which jslint
||
echo
node ~/node_modules/jslint/bin/jslint.js
)
--terse
YUIDOC_CMD
=
$(
shell
which yuidoc
)
auto
:
build
build
:
uglify
...
...
@@ -18,5 +19,7 @@ $(RENDERJS_MIN): $(RENDERJS)
lint
:
$(RENDERJS)
$(LINT_CMD)
"
$<
"
doc
:
$(YUIDOC_CMD)
.
clean
:
rm
-f
$(RENDERJS_MIN)
renderjs.js
View file @
25bd1e4d
...
...
@@ -7,15 +7,35 @@
* http://www.renderjs.org/documentation
*/
// by default RenderJs will render all gadgets when page is loaded
// still it's possible to override this and use explicit gadget rendering
/**
* By default RenderJs will render all gadgets when page is loaded
* still it's possible to override this and use explicit gadget rendering.
*
* @property RENDERJS_ENABLE_IMPLICIT_GADGET_RENDERING
* @type {Boolean}
* @default "true"
*/
var
RENDERJS_ENABLE_IMPLICIT_GADGET_RENDERING
=
true
;
// by default RenderJs will examine and bind all interaction gadgets
// available
/**
* By default RenderJs will examine and bind all interaction gadgets
* available.
*
* @property RENDERJS_ENABLE_IMPLICIT_INTERACTION_BIND
* @type {Boolean}
* @default "true"
*/
var
RENDERJS_ENABLE_IMPLICIT_INTERACTION_BIND
=
true
;
// by default RenderJs will examine and create all routes
/**
* By default RenderJs will examine and create all routes
*
* @property RENDERJS_ENABLE_IMPLICIT_ROUTE_CREATE
* @type {Boolean}
* @default "true"
*/
var
RENDERJS_ENABLE_IMPLICIT_ROUTE_CREATE
=
true
;
// fallback for IE
...
...
@@ -24,6 +44,11 @@ if (console === undefined || console.log === undefined) {
console
.
log
=
function
()
{};
}
/**
Provides the base RenderJs class
@module RenderJs
**/
var
RenderJs
=
(
function
()
{
// a variable indicating if current gadget loading is over or not
var
is_ready
=
false
,
current_gadget
;
...
...
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