Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed unused code

  • Loading branch information...
commit eab39ce4cb3d74d20e05c92430d5922bff331180 1 parent 7bbef53
@nzakas authored
View
22 src/tabview/layout.css
@@ -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
41 src/tabview/tabview.js
@@ -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
7 src/tabview/theme.css
@@ -1,7 +0,0 @@
-/*
- * Theme for tabview control.
- */
-
-.selected {
- background: red;
-}
Please sign in to comment.
Something went wrong with that request. Please try again.