-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7458532
commit 1b14300
Showing
12 changed files
with
48 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* vAccordion - AngularJS multi-level accordion component | ||
* @version v0.0.4 | ||
* @version v0.1.0 | ||
* @link http://lukaszwatroba.github.io/v-accordion | ||
* @author Łukasz Wątroba <[email protected]> | ||
* @license MIT License, http://www.opensource.org/licenses/MIT | ||
|
@@ -9,6 +9,7 @@ | |
/*************************************** | ||
Accordion | ||
***************************************/ | ||
/* Settings */ | ||
/** | ||
* Example HTML: | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* vAccordion - AngularJS multi-level accordion component | ||
* @version v0.0.4 | ||
* @version v0.1.0 | ||
* @link http://lukaszwatroba.github.io/v-accordion | ||
* @author Łukasz Wątroba <[email protected]> | ||
* @license MIT License, http://www.opensource.org/licenses/MIT | ||
|
@@ -65,18 +65,18 @@ function vAccordionDirective (accordionConfig) { | |
function checkCustomControlAPIMethods () { | ||
angular.forEach(protectedApiMethods, function (iteratedMethodName) { | ||
if (scope.control[iteratedMethodName]) { | ||
throw new Error(iteratedMethodName + ' method can not be overwritten'); | ||
throw new Error('The `' + iteratedMethodName + '` method can not be overwritten'); | ||
} | ||
}); | ||
} | ||
|
||
function checkCustomControlCallbacks () { | ||
if (!angular.isFunction( scope.control.onExpand )) { | ||
throw new Error('onExpand callback must be a function'); | ||
throw new Error('The `onExpand` callback must be a function'); | ||
} | ||
|
||
if (!angular.isFunction( scope.control.onCollapse )) { | ||
throw new Error('onCollapse callback must be a function'); | ||
throw new Error('The `onCollapse` callback must be a function'); | ||
} | ||
} | ||
|
||
|
@@ -142,7 +142,7 @@ function AccordionDirectiveController ($scope) { | |
ctrl.addPane = function (pane) { | ||
if (!$scope.allowMultiple) { | ||
if (hasExpandedPane() && pane.isExpanded) { | ||
throw new Error('allow-multiple attribute is not set'); | ||
throw new Error('The `allow-multiple` attribute is not set'); | ||
} | ||
} | ||
|
||
|
@@ -201,7 +201,7 @@ function AccordionDirectiveController ($scope) { | |
ctrl.expand(iteratedPane); | ||
}); | ||
} else { | ||
throw new Error('allow-multiple attribute is not set'); | ||
throw new Error('The `allow-multiple` attribute can\'t be found'); | ||
} | ||
}; | ||
|
||
|
@@ -323,11 +323,11 @@ function vPaneDirective ($timeout, $animate, accordionConfig) { | |
paneContentNative = iElement[0].querySelector('.' + accordionConfig.classes.paneContent); | ||
|
||
if (!paneHeaderNative) { | ||
throw new Error('v-pane-header not found'); | ||
throw new Error('The `v-pane-header` directive can\'t be found'); | ||
} | ||
|
||
if (!paneContentNative) { | ||
throw new Error('v-pane-content not found'); | ||
throw new Error('The `v-pane-content` directive can\'t be found'); | ||
} | ||
|
||
var paneInnerNative = paneContentNative.querySelector('div'); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "v-accordion", | ||
"description": "vAccordion - AngularJS multi-level accordion component", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"author": "Łukasz Wątroba <[email protected]>", | ||
"license": "MIT", | ||
"keywords": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.