         ##
         ##
         _wireLinks: (data, done)->
-            _emit = (i)=>
-                @_emit 'browse',
-                    offset: i*data.limit
-                    limit: data.limit
-                return false
-                        
+            
+            
             @find('a').each (i, link)=>
                 link = $(link).click ()=>
+                    process.nextTick ()=>
+                        @_emit 'browse',
+                            offset: data.limit * parseInt link.attr('href').match(/([0-9]+)\/$/)[1]   
+                            limit: data.limit
                 
-                    _emit parseInt link.attr('href').match(/([0-9]+)\/$/)[1]        
-            
+                    return false
+
             done?()
             
+        ##
+        ##
+        ##
+        _createLink: (href, type, text, _class, img)->
+            link = $('<a>').attr('href', href).attr 'class', 'link '+_class
+            
+            if !img
+                link.html text
+            else
+                link.append $('<img class="icon" alt="'+text+'">').attr('src', '/img/arrow-'+@data.color+'-'+type+'.png')
+            
+            return link
+        
+        
         ##
         ##
         ##

                if rest is 0
                    last -= 1
                
                linkdepth = @data.linkdepth
                href = location.pathname.split('/')
                href[linkdepth + 1] = ''
                
                href[linkdepth] = 0
                @__root.append $('<a>').attr('href', href.join '/')
                    .attr('class', 'link first')
                    .append($('<img class="icon" alt="|&lt;">').attr 'src', '/img/arrow-'+@data.color+'-first.png')
                
                href[linkdepth] = if curr > 0 then curr - 1 else last 
                @__root.append $('<a>').attr('href', href.join '/')
                    .attr('class', 'link prev')
                    .append($('<img class="icon" alt="&lt;">').attr 'src', '/img/arrow-'+@data.color+'-left.png')
                
                @_process [0..last],
    
                    each: (i, next)=>
                        href[linkdepth] = i
                        link = $('<a>').attr('href', href.join '/')
                            .attr('class', 'link page')
                            .text(i + 1)
                    
                        if i is curr
                            link.addClass 'actual'

                
                data:
                    color: 'white'
                    
                    text:
                        first: '|&lt;'
                        left: '&lt;'
                        right: '&gt;'
                        last: '&gt;|'
                
                template: ->
                    div class:'browse'
