Skip to content

Commit

Permalink
removing some debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Feb 9, 2012
1 parent 75ae627 commit fa1ca32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
6 changes: 1 addition & 5 deletions js/application_core/dojo-core.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ app.core = (function(){
}, },


throwError: function(errType, msg){ throwError: function(errType, msg){
console.log(errType, msg); //console.log(errType, msg);
}, },


events: { events: {
Expand All @@ -62,7 +62,6 @@ app.core = (function(){
} }
}, },
trigger: function(events){ trigger: function(events){
console.log('trigger',events);
if(app.core.dom.isObject(events)){ if(app.core.dom.isObject(events)){
var mod; var mod;
for(mod in data){ for(mod in data){
Expand Down Expand Up @@ -175,8 +174,6 @@ app.core = (function(){
q = dojo.attr(dojo.query(el)[0], attribs); q = dojo.attr(dojo.query(el)[0], attribs);
} //string } //string
else if(app.utils.typeEqual(el, 'string')){ else if(app.utils.typeEqual(el, 'string')){
console.log('stringy');
console.log('stringy', el, attribs);


//currently only handling id //currently only handling id
q = dojo.attr(dojo.byId(el), attribs); q = dojo.attr(dojo.byId(el), attribs);
Expand Down Expand Up @@ -207,7 +204,6 @@ app.core = (function(){


//chaining //chaining
if(this._elements != undefined){ if(this._elements != undefined){
console.log()
el = this._elements; el = this._elements;
} }
// string selector // string selector
Expand Down
6 changes: 1 addition & 5 deletions js/application_core/jquery-core.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ app.core = (function(){
}, },


throwError: function(errType, msg){ throwError: function(errType, msg){
console.log(errType, msg); //console.log(errType, msg);
}, },


events: { events: {
Expand Down Expand Up @@ -149,17 +149,14 @@ app.core = (function(){


//jQuery object //jQuery object
if(el instanceof jQuery){ if(el instanceof jQuery){
console.log('inst of jq');
q = el.attr(attribs); q = el.attr(attribs);
}else{ }else{
//string //string
if(app.utils.typeEqual(el, 'string')){ if(app.utils.typeEqual(el, 'string')){
console.log('inst of str');
q = app.core.dom.$(el).attr(attribs); q = app.core.dom.$(el).attr(attribs);
} }
//array //array
else if(app.utils.typeEqual(el, 'array')){ else if(app.utils.typeEqual(el, 'array')){
console.log('inst of arra');
q = app.core.dom.$(el).attr(attribs); q = app.core.dom.$(el).attr(attribs);
}else{ }else{
q = el; q = el;
Expand Down Expand Up @@ -200,7 +197,6 @@ app.core = (function(){


//chaining //chaining
if(this._elements != undefined){ if(this._elements != undefined){
console.log()
el = this._elements; el = this._elements;
} }


Expand Down
6 changes: 0 additions & 6 deletions js/modules/modules.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -53,13 +53,9 @@ app.core.define('#todo-entry', function(f){
return { return {
init: function (){ init: function (){


console.log(button);

input = f.find('input')[0], input = f.find('input')[0],
button = f.find('button')[0]; button = f.find('button')[0];


console.log(button);

f.bind(button, 'click', this.handleEntry); f.bind(button, 'click', this.handleEntry);
f.bind(input, 'keydown', this.handleKey); f.bind(input, 'keydown', this.handleKey);


Expand All @@ -72,15 +68,13 @@ app.core.define('#todo-entry', function(f){
}, },


handleEntry: function (){ handleEntry: function (){
console.log('test');
f.publish({ f.publish({
type : 'new-entry', type : 'new-entry',
data : {value: input.value, id: f.newGUID()} data : {value: input.value, id: f.newGUID()}
}); });
}, },


handleKey: function(e){ handleKey: function(e){
console.log('aaa');
if(e.which == 13){ if(e.which == 13){
f.publish({ f.publish({
type : 'new-entry', type : 'new-entry',
Expand Down

0 comments on commit fa1ca32

Please sign in to comment.