moved cid so that other functions can use it in category.js

This commit is contained in:
Baris Usakli
2013-10-16 12:03:44 -04:00
parent b31fa856d0
commit 230ed1ab11

View File

@@ -1,9 +1,8 @@
define(function () {
var Category = {};
var Category = {},
cid = templates.get('category_id');
Category.init = function() {
var cid = templates.get('category_id'),
room = 'category_' + cid,
var room = 'category_' + cid,
twitterEl = document.getElementById('twitter-intent'),
facebookEl = document.getElementById('facebook-share'),
googleEl = document.getElementById('google-share'),