Skip to content

Commit

Permalink
reference correct channel in options.message, remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Sep 27, 2016
1 parent c682fbf commit 3dde23a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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.0",
"version": "0.3.1",
"homepage": "https://github.com/pubnub/eon-map",
"authors": [
"Ian Jennings <ian@meetjennings.com>"
Expand Down
11 changes: 4 additions & 7 deletions pubnub-mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ window.eon.m = {

clog('Markers:', 'Updating');

console.log(seed)

for(var key in seed) {

if(seed.hasOwnProperty(key)) {
Expand Down Expand Up @@ -211,7 +209,7 @@ window.eon.m = {

message = options.transform(m.message);

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

}
Expand All @@ -224,14 +222,13 @@ window.eon.m = {
if(options.history) {

self.pubnub.history({
channel: options.channel
channel: options.channel,
includeTimetoken: true
}, function(status, payload) {

console.log(status, payload)

for(var a in payload.messages) {
payload.messages[a].entry = options.transform(payload.messages[a].entry);
options.message(payload.messages[a].entry, payload.messages[a].timetoken, channel);
options.message(payload.messages[a].entry, payload.messages[a].timetoken, options.channel);
self.update(payload.messages[a].entry, true);
}

Expand Down

0 comments on commit 3dde23a

Please sign in to comment.