Completely updated React, fixed #11, (hopefully)
This commit is contained in:
@@ -36,9 +36,16 @@ function createThemeListener() {
|
||||
}
|
||||
}
|
||||
|
||||
function unsubscribe(context, subscriptionId) {
|
||||
if (context[CHANNEL]) {
|
||||
context[CHANNEL].unsubscribe(subscriptionId);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
contextTypes: contextTypes,
|
||||
initial: initial,
|
||||
subscribe: subscribe
|
||||
subscribe: subscribe,
|
||||
unsubscribe: unsubscribe
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user