mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
changed function( to function (
This commit is contained in:
parent
26f3d22db7
commit
7e5eeb0a27
36 changed files with 209 additions and 209 deletions
|
|
@ -1,14 +1,14 @@
|
|||
define([
|
||||
],
|
||||
|
||||
function() {
|
||||
function () {
|
||||
|
||||
function NotificationCenter() {
|
||||
this.topics = {};
|
||||
this.subUid = -1;
|
||||
}
|
||||
|
||||
NotificationCenter.prototype.trigger = function(topic) {
|
||||
NotificationCenter.prototype.trigger = function (topic) {
|
||||
|
||||
if (!this.topics[topic]) {
|
||||
throw "No such topic " + topic + ". Could not trigger.";
|
||||
|
|
@ -24,7 +24,7 @@ function() {
|
|||
}
|
||||
}
|
||||
|
||||
NotificationCenter.prototype.on = function(topic, func, context) {
|
||||
NotificationCenter.prototype.on = function (topic, func, context) {
|
||||
|
||||
if (!this.topics[topic]) {
|
||||
this.topics[topic] = [];
|
||||
|
|
@ -40,7 +40,7 @@ function() {
|
|||
return token;
|
||||
}
|
||||
|
||||
NotificationCenter.prototype.off = function(token) {
|
||||
NotificationCenter.prototype.off = function (token) {
|
||||
|
||||
for(var m in this.topics) {
|
||||
if (this.topics[m]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue