You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/01/27 23:21:09 UTC

[23/27] git commit: renaming 'Event' to 'Counter'

renaming 'Event' to 'Counter'


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/2c77ebf6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/2c77ebf6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/2c77ebf6

Branch: refs/pull/34/head
Commit: 2c77ebf6ea06b293a7e219da3a7e654eb6334545
Parents: dc31ba5
Author: ryan bridges <rb...@apigee.com>
Authored: Mon Jan 27 16:22:54 2014 -0500
Committer: ryan bridges <rb...@apigee.com>
Committed: Mon Jan 27 16:22:54 2014 -0500

----------------------------------------------------------------------
 sdks/html5-javascript/lib/Event.js | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2c77ebf6/sdks/html5-javascript/lib/Event.js
----------------------------------------------------------------------
diff --git a/sdks/html5-javascript/lib/Event.js b/sdks/html5-javascript/lib/Event.js
index c39ec94..74d019c 100644
--- a/sdks/html5-javascript/lib/Event.js
+++ b/sdks/html5-javascript/lib/Event.js
@@ -5,7 +5,7 @@
  *  @param {object} options {timestamp:0, category:'value', counters:{name : value}}
  *  @returns {callback} callback(err, event)
  */
-Usergrid.Event = function(options, callback) {
+Usergrid.Counter = function(options, callback) {
   var self=this;
   this._client = options.client;
   this._data = options.data || {};
@@ -27,9 +27,9 @@ var COUNTER_RESOLUTIONS=[
  *  Note: This only accounts for data on the group object itself.
  *  You need to use add and remove to manipulate group membership.
  */
-Usergrid.Event.prototype = new Usergrid.Entity();
+Usergrid.Counter.prototype = new Usergrid.Entity();
 
-Usergrid.Event.prototype.fetch=function(callback){
+Usergrid.Counter.prototype.fetch=function(callback){
   this.getData(null, null, null, null, callback);
 }
 /*
@@ -43,7 +43,7 @@ Usergrid.Event.prototype.fetch=function(callback){
  * @param {function} callback
  * @returns {callback} callback(err, event)
  */
-Usergrid.Event.prototype.increment=function(name, value, callback){
+Usergrid.Counter.prototype.increment=function(name, value, callback){
   var self=this;
   if(isNaN(value)){
     if(typeof(callback) === 'function') {
@@ -65,7 +65,7 @@ Usergrid.Event.prototype.increment=function(name, value, callback){
  * @returns {callback} callback(err, event)
  */
 
-Usergrid.Event.prototype.decrement=function(name, value, callback){
+Usergrid.Counter.prototype.decrement=function(name, value, callback){
   this.increment(name, -((parseInt(value))||1), callback);
 };
 /*
@@ -80,11 +80,11 @@ Usergrid.Event.prototype.decrement=function(name, value, callback){
  * @returns {callback} callback(err, event)
  */
 
-Usergrid.Event.prototype.reset=function(name, callback){
+Usergrid.Counter.prototype.reset=function(name, callback){
   this.increment(name, 0, callback);
 };
 
-Usergrid.Event.prototype.getData=function(start, end, resolution, counters, callback){
+Usergrid.Counter.prototype.getData=function(start, end, resolution, counters, callback){
   var start_time, 
       end_time,
       res=(resolution||'all').toLowerCase();