 
         next: ->
             list = @list
-            i = $.inArray(this.cur, list)
+            i = $.inArray(@cur, list)
             l = list.length
             next = i + 1
 


        prev: ->
            list = @list
            i = $.inArray(this.cur, list)
            l = list.length
            prev = i - 1


do (root = @, factory = (utils, Events) ->
    class Playlist
        constructor: (options) ->
            @opts = $.extend({}, @defaults, options)
