Skip to content

Commit

Permalink
Merge branch 'BDomzalski-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jseppi committed Apr 9, 2015
2 parents 6686869 + e82693d commit 01fb4b9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
12 changes: 7 additions & 5 deletions angular-dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ dd.directive('dropdownSelect', ['DropdownService',
scope: {
dropdownSelect: '=',
dropdownModel: '=',
dropdownItemLabel: '@',
dropdownOnchange: '&'
},

controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
$scope.labelField = $attrs.dropdownItemLabel || 'text';
controller: ['$scope', '$element', function ($scope, $element) {
$scope.labelField = $scope.dropdownItemLabel || 'text';

DropdownService.register($element);

Expand Down Expand Up @@ -131,11 +132,12 @@ dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownService', '$templat
scope: {
dropdownMenu: '=',
dropdownModel: '=',
dropdownItemLabel: '@',
dropdownOnchange: '&'
},

controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
$scope.labelField = $attrs.dropdownItemLabel || 'text';
controller: ['$scope', '$element', function ($scope, $element) {
$scope.labelField = $scope.dropdownItemLabel || 'text';

var $template = angular.element($templateCache.get('ngDropdowns/templates/dropdownMenu.html'));
// Attach this controller to the element's data
Expand Down Expand Up @@ -233,4 +235,4 @@ dd.factory('DropdownService', ['$document',
return service;
}
]);
})(window, window.angular);
})(window, window.angular);
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-dropdowns",
"version": "1.0.0",
"version": "1.1.0",
"homepage": "https://github.com/jseppi/angular-dropdowns",
"authors": [
"James Seppi <[email protected]> (http://github.com/jseppi)",
Expand All @@ -11,7 +11,8 @@
"tlvince",
"dinodsaurus",
"elishacook",
"alexisbg"
"alexisbg",
"BDomzalski"
],
"description": "AngularJS Dropdown Directives",
"main": [
Expand Down
12 changes: 7 additions & 5 deletions dist/angular-dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ dd.directive('dropdownSelect', ['DropdownService',
scope: {
dropdownSelect: '=',
dropdownModel: '=',
dropdownItemLabel: '@',
dropdownOnchange: '&'
},

controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
$scope.labelField = $attrs.dropdownItemLabel || 'text';
controller: ['$scope', '$element', function ($scope, $element) {
$scope.labelField = $scope.dropdownItemLabel || 'text';

DropdownService.register($element);

Expand Down Expand Up @@ -131,11 +132,12 @@ dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownService', '$templat
scope: {
dropdownMenu: '=',
dropdownModel: '=',
dropdownItemLabel: '@',
dropdownOnchange: '&'
},

controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
$scope.labelField = $attrs.dropdownItemLabel || 'text';
controller: ['$scope', '$element', function ($scope, $element) {
$scope.labelField = $scope.dropdownItemLabel || 'text';

var $template = angular.element($templateCache.get('ngDropdowns/templates/dropdownMenu.html'));
// Attach this controller to the element's data
Expand Down Expand Up @@ -233,4 +235,4 @@ dd.factory('DropdownService', ['$document',
return service;
}
]);
})(window, window.angular);
})(window, window.angular);
2 changes: 1 addition & 1 deletion dist/angular-dropdowns.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-dropdowns",
"version": "1.0.0",
"version": "1.1.0",
"author": {
"name": "James Seppi",
"email": "[email protected]",
Expand All @@ -23,7 +23,8 @@
"tlvince",
"dinodsaurus",
"elishacook",
"alexisbg"
"alexisbg",
"BDomzalski"
],
"repository": {
"type": "git",
Expand All @@ -37,11 +38,6 @@
"gulp-rename": "^1.2.0",
"gulp-rimraf": "^0.1.0",
"gulp-uglify": "^0.3.2",
"jshint-stylish": "^0.4.0",
"karma": "^0.12.22"
},
"engines": {
"node": "0.10.x",
"npm": "1.4.x"
"jshint-stylish": "^0.4.0"
}
}

0 comments on commit 01fb4b9

Please sign in to comment.