Skip to content

Commit

Permalink
Use '$' prefix convention to indicate jquery object variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mjtko committed Mar 1, 2013
1 parent 903c87c commit ccbb6a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/assets/javascripts/backbone/helpers/channels.js.coffee
Expand Up @@ -89,14 +89,14 @@ class Kandan.Helpers.Channels
@createChannelArea: (channel)->
channelArea = "#channels-#{channel.get('id')}"
totalTabs = $("#kandan").tabs("length")
createTab = $("#create_channel").parents("li").detach()
$createTab = $("#create_channel").parents("li").detach()
$("#kandan").tabs("add", channelArea, "#{channel.get("name")}", totalTabs)
createTab.appendTo("ul.ui-tabs-nav")
$createTab.appendTo("ul.ui-tabs-nav")
$('#ui-tabs-1').remove()
view = new Kandan.Views.ChannelPane({channel: channel})
newChannel = $(channelArea)
view.render newChannel
newChannel.addClass('ui-tabs-panel')
$newChannel = $(channelArea)
view.render $newChannel
$newChannel.addClass('ui-tabs-panel')

@newActivityView: (activityAttributes)->
activity = new Kandan.Models.Activity(activityAttributes)
Expand Down

0 comments on commit ccbb6a8

Please sign in to comment.