Removed debug infos.

This commit is contained in:
Martin Edenhofer 2012-11-27 03:40:54 +01:00
parent f83263061d
commit 8ef958efea
10 changed files with 7 additions and 27 deletions

View file

@ -21,7 +21,6 @@ class App.Controller extends Spine.Controller
scrollTo: ( x = 0, y = 0, delay = 0 ) ->
a = ->
console.log('scollTo', x, y )
window.scrollTo( x, y )
@delay( a, delay )

View file

@ -630,7 +630,7 @@ class App.ControllerForm extends App.Controller
inputSelectData = param[ key ]
inputSelectObject[ name ] = {}
for x in [0..inputSelectData.length] by 2
console.log 'for by 111', x, inputSelectData, inputSelectData[x], inputSelectData[ x + 1 ]
# console.log 'for by 111', x, inputSelectData, inputSelectData[x], inputSelectData[ x + 1 ]
if inputSelectData[ x ]
inputSelectObject[ name ][ inputSelectData[x] ] = inputSelectData[ x + 1 ]

View file

@ -90,7 +90,6 @@ class Index extends App.Controller
@navigate '#/'
error: (xhr, statusText, error) =>
console.log 'login:error'
# add notify
App.Event.trigger 'notify:removeall'

View file

@ -79,7 +79,6 @@ class App.Navigation extends App.Controller
term: @term
processData: true,
success: (data, status, xhr) =>
console.log data
# load user collection
if data.users

View file

@ -111,7 +111,7 @@ class App.TextModuleUI extends App.Controller
# prevent default key action
e.preventDefault()
console.log 'CTRL+', ui.CaptureList
# console.log 'CTRL+', ui.CaptureList
ui.el.find('#text-module-search').val( ui.CaptureList )
ui.renderTable( ui.CaptureList )
@ -125,7 +125,7 @@ class App.TextModuleUI extends App.Controller
inputElement.bind('keyup', (e) ->
if e.keyCode == 17
ui.CaptureList = ''
console.log 'CTRL UP - pressed ', ui.CaptureList
# console.log 'CTRL UP - pressed ', ui.CaptureList
ui.Capture = false
ui.el.find('#text-module-search').val( '' )
ui.renderTable()
@ -262,7 +262,7 @@ class App.TextModuleUI extends App.Controller
try
key = eval (varString)
catch error
console.log( "tag replacement: " + error )
# console.log( "tag replacement: " + error )
key = ''
return key
)

View file

@ -1,9 +1,6 @@
class App.Log
_instance = undefined
# @sub: (module) ->
# @module: (name) ->
@log: ( module, level, args... ) ->
if _instance == undefined
_instance ?= new _Singleton
@ -17,7 +14,6 @@ class App.Log
class _Singleton
constructor: ->
console.log 'NNNNNNNEEEWWW LOG!!!'
@config = {}
# Session: true
# ControllerForm: true
@ -30,5 +26,5 @@ class _Singleton
_log: ( module, level, args ) ->
console.log "App.#{module}(#{level})", args
window.console.log "App.#{module}(#{level})", args

View file

@ -130,7 +130,6 @@ class _Singleton extends Spine.Module
# load full array once
if _.isArray( params.data )
# console.log( 'load ARRAY', params.data)
App[ params.type ].refresh( params.data )
# remember in store if not already requested from local storage
@ -142,7 +141,6 @@ class _Singleton extends Spine.Module
# load data from object
# if _.isObject( params.data )
for key, object of params.data
# console.log( 'load OB', object)
App[ params.type ].refresh( object )
# remember in store if not already requested from local storage
@ -151,10 +149,8 @@ class _Singleton extends Spine.Module
find: ( type, id, callback, force ) ->
# console.log( 'find', type, id, force )
# if App[type].exists( id ) && !callback
if !force && App[type].exists( id )
# console.log( 'find exists', type, id )
data = App[type].find( id )
if callback
callback( data )
@ -167,13 +163,11 @@ class _Singleton extends Spine.Module
# execute callback if record got loaded
App[type].one 'refresh', ->
console.log 'loaded..' + type + '..', id
data = App.Collection.find( type, id )
callback( data )
# fetch object
console.log 'loading..' + type + '..', id
@log 'Collection', 'debug', 'loading..' + type + '..', id
App[type].fetch( id: id )
return true
return false

View file

@ -38,7 +38,6 @@ class _Singleton extends Spine.Module
.delegate '.translation', 'focus', (e) =>
$this = $(e.target)
$this.data 'before', $this.html()
# console.log('11111current', $this.html())
return $this
# .delegate '.translation', 'blur keyup paste', (e) =>
.delegate '.translation', 'blur', (e) =>
@ -55,7 +54,7 @@ class _Singleton extends Spine.Module
# update translation
return if $this.data('before') is translation_new
console.log 'Translation Update', translation_new, $this.data 'before'
@log 'i18n', 'debug', 'translate Update', translation_new, $this.data, 'before'
$this.data 'before', translation_new
# update runtime translation map
@ -101,9 +100,6 @@ class _Singleton extends Spine.Module
# load in collection if needed
App.Translation.refresh( { id: object[0], source: object[1], target: object[2], locale: @locale } )
error: (xhr, statusText, error) =>
console.log 'error', error, statusText, xhr.statusCode
)
translate_inline: ( string, args... ) =>

View file

@ -63,7 +63,6 @@ class _Singleton extends App.Controller
if @ws.readyState is 0
@queue.push data
else
# console.log( 'ws:send', data )
string = JSON.stringify( data )
@ws.send(string)
@ -229,7 +228,6 @@ class _Singleton extends App.Controller
# stop init request if new one is started
if @_ajaxInitWorking
console.log '@_ajaxInitWorking', @_ajaxInitWorking
@_ajaxInitWorking.abort()
# call init request

View file

@ -53,7 +53,6 @@ class App.Model extends Spine.Model
# get confirm password
if data['params'][attribute.name] isnt data['params']["#{attribute.name}_confirm"]
console.log 'aaa', data['params'][attribute.name], data['params']["#{attribute.name}_confirm"], attribute[null]
errors[attribute.name] = 'didn\'t match'
errors["#{attribute.name}_confirm"] = ''