Skip to content

Commit 88825c2

Browse files
committed
Merge pull request chuanxshi#61 from DrColossos/fix-missing-functions
Added both functions that are responsible for the output
2 parents 728c21d + 71e2221 commit 88825c2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎jquery-patterns/pubsub-callback.html‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
returntopic;
3131
};
3232

33+
functionfn1(value){
34+
console.log(value);
35+
}
36+
37+
functionfn2(value){
38+
fn1("fn2 says:"+value);
39+
returnfalse;
40+
}
3341

3442
// Usage:
3543
// Subscribers
@@ -56,4 +64,4 @@
5664
// https://gist.github.com/1321768
5765
</script>
5866
</body>
59-
</html>
67+
</html>

0 commit comments

Comments
(0)