finnaly created a carousel

This commit is contained in:
Senad Uka
2015-01-28 07:16:48 +01:00
parent 1445e8f702
commit 906c29b22f
8 changed files with 352 additions and 37 deletions

View File

@@ -8,16 +8,7 @@ var _ = require('underscore');
// Extend ItemStore with EventEmitter to add eventing capabilities
var NavigationStore = _.extend({}, EventEmitter.prototype, {
getItemIdFromUrl: function () {
// ugly but it seems to me that
// router does not want to expose its
// state
var url = document.URL;
var itemIdRegex = /artikal\/(\d+)\//;
var match = itemIdRegex.exec(url);
console.log(match);
return match[0];
},
// Emit Change event
emitChange: function() {