Playback, import fixes

This commit is contained in:
Gregory Eremin
2012-09-17 12:25:38 +04:00
parent a29f4433ca
commit e8fa9e4cda
14 changed files with 80 additions and 43 deletions
View File
@@ -0,0 +1,8 @@
$.fn.neighbour = (context, offset) ->
self = this[0]
result = null
nodes = $(context)
nodes.each (i, node) ->
result = nodes[i+offset] if node is self
result = null if typeof result is "undefined"
result