ng-material-floating-button
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "ng-material-floating-button", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"homepage": "https://github.com/nobitagit/ng-material-floating-button", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "ng-material-floating-button", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "angular directive for material floating buttons", | ||
@@ -5,0 +5,0 @@ "main": [ |
@@ -1,2 +0,2 @@ | ||
+(function(window, angular, undefined) { | ||
;(function(window, angular, undefined) { | ||
@@ -65,3 +65,3 @@ 'use strict'; | ||
mfb.directive('mfbButtonClose', function($log) { | ||
mfb.directive('mfbButtonClose', function() { | ||
return { | ||
@@ -97,8 +97,8 @@ restrict: 'A', | ||
}, | ||
controller: function($scope, $attrs) { | ||
controller: ['$scope', '$attrs', function($scope, $attrs) { | ||
var openState = 'open', | ||
closedState = 'closed'; | ||
// Attached toggle, open and close to the controller to give other directive access them | ||
// directives such as mfbButtonClose | ||
// Attached toggle, open and close to the controller to give other | ||
// directive access | ||
this.toggle = toggle; | ||
@@ -115,3 +115,2 @@ this.close = close; | ||
*/ | ||
//$scope.menuState = $attrs.menuState || closedState; | ||
if (!$scope.menuState) { | ||
@@ -191,3 +190,3 @@ $scope.menuState = closedState; | ||
} | ||
} | ||
}] | ||
}; | ||
@@ -194,0 +193,0 @@ }]); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144956
1287