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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
renderjs
Commits
d4ce6623
Commit
d4ce6623
authored
Feb 07, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use requirejs in examples/jqm.
parent
187cf662
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
19 deletions
+24
-19
examples/jqm/index.html
examples/jqm/index.html
+3
-19
examples/jqm/require-renderjs_jqm.js
examples/jqm/require-renderjs_jqm.js
+19
-0
lib/jqm/jquery.mobile-1.3.0-rc.1.min.js
lib/jqm/jquery.mobile-1.3.0-rc.1.min.js
+2
-0
No files found.
examples/jqm/index.html
View file @
d4ce6623
...
...
@@ -5,14 +5,9 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
href=
"http://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.css"
/>
<link
rel=
"stylesheet"
href=
"jqm-gadget.css"
/>
<script
src=
"http://code.jquery.com/jquery-1.9.0.min.js"
></script>
<script
src=
"http://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js"
></script>
<script
src=
"../../renderjs.js"
></script>
<!-- XXX:Using requirejs is not working with JQM -->
<!-- <script data-main="require-renderjs.js"
<script
data-main=
"require-renderjs_jqm.js"
type=
"text/javascript"
src="../../lib/require/require.js"></script>
-->
src=
"../../lib/require/require.js"
></script>
</head>
...
...
@@ -37,18 +32,7 @@
</div>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
// explicitly call required as requirejs call not working
RenderJs
.
init
();
// when all gadgets are loaded make sure JQM renders them
RenderJs
.
bindReady
(
function
()
{
$
(
"
[data-gadget]
"
).
trigger
(
'
create
'
);
});
});
</script>
</body>
</html>
\ No newline at end of file
</html>
examples/jqm/require-renderjs_jqm.js
0 → 100644
View file @
d4ce6623
// JavaScript file that is used to load RenderJs depenencies
require
.
config
({
baseUrl
:
"
../..
"
,
paths
:
{
jqm
:
"
lib/jqm/jquery.mobile-1.3.0-rc.1.min
"
},
shim
:
{
jqm
:
[
"
jquery
"
]
}
});
require
([
"
require-renderjs
"
,
"
renderjs
"
,
"
jqm
"
],
function
(
domReady
)
{
// when all gadgets are loaded make sure JQM renders them
RenderJs
.
bindReady
(
function
()
{
$
(
"
[data-gadget]
"
).
trigger
(
'
create
'
);
}
);
});
lib/jqm/jquery.mobile-1.3.0-rc.1.min.js
0 → 100644
View file @
d4ce6623
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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