Skip to content

Commit

Permalink
0.3.2 - patch for multiple maps / eon on same page
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Sep 27, 2016
1 parent 3dde23a commit e00da45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eon-map",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/pubnub/eon-map",
"authors": [
"Ian Jennings <ian@meetjennings.com>"
Expand Down
11 changes: 7 additions & 4 deletions pubnub-mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,15 @@ window.eon.m = {
},
message: function(m) {

clog('PubNub:', 'Got Message');
if(m.channel == options.channel) {

clog('PubNub:', 'Got Message');

message = options.transform(m.message);
message = options.transform(m.message);

options.message(message, m.timetoken, m.channel);
self.update(message, true);
options.message(message, m.timetoken, m.channel);
self.update(message, true);
}

}
});
Expand Down

0 comments on commit e00da45

Please sign in to comment.