Skip to content

Commit

Permalink
update eon-chart and eon-map versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Jun 4, 2015
1 parent 3a37c4d commit 51c17c1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 52 deletions.
Binary file added .DS_Store
Binary file not shown.
25 changes: 5 additions & 20 deletions lib/eon-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7185,29 +7185,14 @@ eon.c = {
channel: channel,
connect: connect,
message: function(message, env, channel) {

eon.c.message(message, env, channel);

eon.c.message(message, env, channel );
}
});

} else {
eon.c.observers[channel].push(callback);
}

},
unsubscribe: function(pubnub, channel) {

if(typeof(eon.c.observers[channel]) != "undefined") {

delete eon.c.observers[channel];

pubnub.unsubscribe({
channel: channel
});

}

},
create: function(options) {

Expand All @@ -7222,6 +7207,7 @@ eon.c = {
error = "PubNub not found. See http://www.pubnub.com/docs/javascript/javascript-sdk.html#_where_do_i_get_the_code";
}

options.transform = options.transform || function(m){return m};
options.channel = options.channel || false;
options.generate = options.generate || {};
if(!options.generate.data) {
Expand Down Expand Up @@ -7440,21 +7426,19 @@ eon.c = {

eon.c.subscribe(self.pubnub, options.channel, options.connect, function(message, env, channel) {

var message = options.transform(message);

options.message(message, env, channel);
mapMessage(message);

});

var num_loops = 0;

var recursive = function(){

if(lastData.length) {

if(options.flow) {

num_loops++;

var trimLength = needsTrim();

if((buffer.length && !buffer[0].values.length) || trimLength > 1) {
Expand Down Expand Up @@ -7505,4 +7489,5 @@ eon.c = {
eon.chart = function(o) {
return new eon.c.create(o);
};

var eon = eon || {};
11 changes: 5 additions & 6 deletions lib/eon-map.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 10 additions & 26 deletions lib/eon.js

Large diffs are not rendered by default.

0 comments on commit 51c17c1

Please sign in to comment.