Permalink
Browse files

removing some debug code

  • Loading branch information...
1 parent 75ae627 commit fa1ca329ae8614a8e01816a9462be48120007cee @addyosmani committed Feb 9, 2012
Showing with 2 additions and 16 deletions.
  1. +1 −5 js/application_core/dojo-core.js
  2. +1 −5 js/application_core/jquery-core.js
  3. +0 −6 js/modules/modules.js
@@ -48,7 +48,7 @@ app.core = (function(){
},
throwError: function(errType, msg){
- console.log(errType, msg);
+ //console.log(errType, msg);
},
events: {
@@ -62,7 +62,6 @@ app.core = (function(){
}
},
trigger: function(events){
- console.log('trigger',events);
if(app.core.dom.isObject(events)){
var mod;
for(mod in data){
@@ -175,8 +174,6 @@ app.core = (function(){
q = dojo.attr(dojo.query(el)[0], attribs);
} //string
else if(app.utils.typeEqual(el, 'string')){
- console.log('stringy');
- console.log('stringy', el, attribs);
//currently only handling id
q = dojo.attr(dojo.byId(el), attribs);
@@ -207,7 +204,6 @@ app.core = (function(){
//chaining
if(this._elements != undefined){
- console.log()
el = this._elements;
}
// string selector
@@ -48,7 +48,7 @@ app.core = (function(){
},
throwError: function(errType, msg){
- console.log(errType, msg);
+ //console.log(errType, msg);
},
events: {
@@ -149,17 +149,14 @@ app.core = (function(){
//jQuery object
if(el instanceof jQuery){
- console.log('inst of jq');
q = el.attr(attribs);
}else{
//string
if(app.utils.typeEqual(el, 'string')){
- console.log('inst of str');
q = app.core.dom.$(el).attr(attribs);
}
//array
else if(app.utils.typeEqual(el, 'array')){
- console.log('inst of arra');
q = app.core.dom.$(el).attr(attribs);
}else{
q = el;
@@ -200,7 +197,6 @@ app.core = (function(){
//chaining
if(this._elements != undefined){
- console.log()
el = this._elements;
}
View
@@ -53,13 +53,9 @@ app.core.define('#todo-entry', function(f){
return {
init: function (){
- console.log(button);
-
input = f.find('input')[0],
button = f.find('button')[0];
- console.log(button);
-
f.bind(button, 'click', this.handleEntry);
f.bind(input, 'keydown', this.handleKey);
@@ -72,15 +68,13 @@ app.core.define('#todo-entry', function(f){
},
handleEntry: function (){
- console.log('test');
f.publish({
type : 'new-entry',
data : {value: input.value, id: f.newGUID()}
});
},
handleKey: function(e){
- console.log('aaa');
if(e.which == 13){
f.publish({
type : 'new-entry',

0 comments on commit fa1ca32

Please sign in to comment.