Permalink
Browse files

Removed unused code

  • Loading branch information...
1 parent 7bbef53 commit eab39ce4cb3d74d20e05c92430d5922bff331180 @nzakas committed Jun 17, 2013
Showing with 0 additions and 70 deletions.
  1. +0 −22 src/tabview/layout.css
  2. +0 −41 src/tabview/tabview.js
  3. +0 −7 src/tabview/theme.css
View
@@ -1,22 +0,0 @@
-/*
- * Layout styles for tabview control.
- */
-
-.nui-tabview .nui-tabs {
- display: table;
- list-style-type: none;
- padding: 0;
- margin: 0;
-}
-
-.nui-tabview .nui-tabs li {
- display: table-cell;
-}
-
-.nui-tabview .nui-panels .nui-panel {
- display: none;
-}
-
-.nui-tabview .nui-panels .nui-panel.selected {
- display: block;
-}
View
@@ -1,41 +0,0 @@
-/*global nui, window, document*/
-(function(){
-
- //constants
- var SELECTED_CLASS = "selected",
- DATA_NUI = nui.DATA_NUI,
- TABS_CLASS = "nui-tabs",
-
- //shortcuts
- data = nui.data,
- dom = nui.dom,
- evt = nui.event;
-
- //attach global handler - should probably be done by framework
- nui.event.on(document, "click", function(event){
- event = event || window.event;
- var target = evt.getTarget(event),
- node = dom.ancestorByAttribute(target, DATA_NUI),
- tabs, panels, i, len, selIndex,
- info;
-
- if (!node) {
- return;
- }
-
- info = data.parse(node.getAttribute(DATA_NUI));
-
- if (info.type == "tabview"){
- tabs = dom.selectAll("." + TABS_CLASS + " li", node);
- panels = dom.selectAll(".nui-panels .nui-panel", node);
-
- if (dom.ancestorByClass(target, TABS_CLASS)){
- dom.removeClass(tabs.concat(panels), SELECTED_CLASS);
- dom.addClass([ target.parentNode, nui.dom.select(target.getAttribute("href")) ], SELECTED_CLASS);
- evt.preventDefault(event);
- }
- }
-
- });
-
-})();
View
@@ -1,7 +0,0 @@
-/*
- * Theme for tabview control.
- */
-
-.selected {
- background: red;
-}

0 comments on commit eab39ce

Please sign in to comment.