Skip to content
Browse files

discard old logging

  • Loading branch information...
1 parent aad592f commit 3ec0e73d23cc26ab0d1eb7a66ea35fd946fb5660 @WardCunningham committed Aug 11, 2012
View
2 client/lib/active.coffee
@@ -14,7 +14,6 @@ scrollTo = (el) ->
bodyWidth = $("body").width()
minX = active.scrollContainer.scrollLeft()
maxX = minX + bodyWidth
- wiki.log 'scrollTo', el, el.position()
target = el.position().left
width = el.outerWidth(true)
contentWidth = $(".page").outerWidth(true) * $(".page").size()
@@ -28,7 +27,6 @@ scrollTo = (el) ->
active.set = (el) ->
el = $(el)
- wiki.log 'set active', el
$(".active").removeClass("active")
scrollTo el.addClass("active")
View
7 client/lib/legacy.coffee
@@ -44,12 +44,6 @@ $ ->
wiki.log = (things...) ->
console.log things if console?.log?
- wiki.dump = ->
- for p in $('.page')
- wiki.log '.page', p
- wiki.log '.item', i, 'data-item', $(i).data('item') for i in $(p).find('.item')
- null
-
wiki.resolutionContext = []
resolveFrom = wiki.resolveFrom = (addition, callback) ->
wiki.resolutionContext.push addition
@@ -81,7 +75,6 @@ $ ->
.data("slug", pageElement.attr('id'))
useLocalStorage = wiki.useLocalStorage = ->
- wiki.log 'useLocalStorage', $(".login").length > 0
$(".login").length > 0
createTextElement = (pageElement, beforeElement, initialText) ->
View
1 client/lib/pageHandler.coffee
@@ -27,7 +27,6 @@ recursiveGet = ({pageInformation, whenGotten, whenNotGotten, localContext}) ->
dataType: 'json'
url: pageUrl
success: (page) ->
- wiki.log 'fetch success', page, site || 'origin'
page = revision.create rev, page if rev
return whenGotten(page,site)
error: (xhr, type, msg) ->
View
2 client/lib/refresh.coffee
@@ -116,7 +116,7 @@ module.exports = refresh = wiki.refresh = ->
addContext action.site for action in page.journal.slice(0).reverse()
wiki.resolutionContext = context
- wiki.log 'build', slug, 'site', site, 'context', context.join ' => '
+ wiki.log 'buildPage', slug, 'site', site, 'context', context.join ' => '
emitHeader pageElement, page
[storyElement, journalElement, footerElement] = ['story', 'journal', 'footer'].map (className) ->
View
6 client/lib/state.coffee
@@ -24,20 +24,16 @@ state.setUrl = ->
pages = state.pagesInDom()
url = ("/#{locs?[idx] or 'view'}/#{page}" for page, idx in pages).join('')
unless url is $(location).attr('pathname')
- wiki.log 'set state', locs, pages
history.pushState(null, null, url)
state.show = (e) ->
- wiki.log 'popstate', e
oldPages = state.pagesInDom()
newPages = state.urlPages()
oldLocs = state.locsInDom()
newLocs = state.urlLocs()
return if (!location.pathname or location.pathname is '/')
- wiki.log 'showState', oldPages, newPages, oldLocs, newLocs
-
previous = $('.page').eq(0)
for name, idx in newPages
@@ -57,8 +53,6 @@ state.first = ->
firstUrlPages = state.urlPages()
firstUrlLocs = state.urlLocs()
oldPages = state.pagesInDom()
- wiki.log 'amost createPage', firstUrlPages, firstUrlLocs, oldPages
for urlPage, idx in firstUrlPages when urlPage not in oldPages
- wiki.log 'createPage', urlPage, idx
wiki.createPage(urlPage, firstUrlLocs[idx]).appendTo('.main') unless urlPage is ''
View
1 client/lib/util.coffee
@@ -12,7 +12,6 @@ util.resolveLinks = (string) ->
renderInternalLink = (match, name) ->
# spaces become 'slugs', non-alpha-num get removed
slug = util.asSlug name
- wiki.log 'resolve', slug, 'context', wiki.resolutionContext.join(' => ')
"<a class=\"internal\" href=\"/#{slug}.html\" data-page-name=\"#{slug}\" title=\"#{wiki.resolutionContext.join(' => ')}\">#{name}</a>"
string
.replace(/\[\[([^\]]+)\]\]/gi, renderInternalLink)

0 comments on commit 3ec0e73

Please sign in to comment.
Something went wrong with that request. Please try again.