Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
9f1985ff
Commit
9f1985ff
authored
Jun 25, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui prototype: add tiny pubsub to handle events in the gui
parent
09944c7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
DREAM/dream/dream/platform/static/index.html
DREAM/dream/dream/platform/static/index.html
+1
-0
DREAM/dream/dream/platform/static/lib/pubsub.js
DREAM/dream/dream/platform/static/lib/pubsub.js
+21
-0
No files found.
DREAM/dream/dream/platform/static/index.html
View file @
9f1985ff
...
...
@@ -70,6 +70,7 @@
<script
type=
"text/javascript"
src=
"lib/md5.js"
></script>
<script
type=
"text/javascript"
src=
"lib/jio.js"
></script>
<script
type=
"text/javascript"
src=
"lib/jio.localstorage.js"
></script>
<script
type=
"text/javascript"
src=
"lib/pubsub.js"
></script>
<!-- /DEP -->
<!-- JS -->
...
...
DREAM/dream/dream/platform/static/lib/pubsub.js
0 → 100644
View file @
9f1985ff
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(
function
(
$
)
{
var
o
=
$
({});
$
.
subscribe
=
function
()
{
o
.
on
.
apply
(
o
,
arguments
);
};
$
.
unsubscribe
=
function
()
{
o
.
off
.
apply
(
o
,
arguments
);
};
$
.
publish
=
function
()
{
o
.
trigger
.
apply
(
o
,
arguments
);
};
}(
jQuery
));
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