Skip to content

Commit 4f65bf1

Browse files
committed
already runs the code. Removed function calling
1 parent 73ae581 commit 4f65bf1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

dist/angular-wizard.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ function wizardButtonDirective(action) {
156156
$element.on("click", function(e) {
157157
e.preventDefault();
158158
$scope.$apply(function() {
159-
var fn = $scope.$eval($attrs[action]);
160-
fn && fn();
159+
$scope.$eval($attrs[action]);
161160
wizard[action.replace("wz", "").toLowerCase()]();
162161
});
163162
});

dist/angular-wizard.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wizardButtons.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ function wizardButtonDirective(action) {
1010
$element.on("click", function(e) {
1111
e.preventDefault();
1212
$scope.$apply(function() {
13-
var fn = $scope.$eval($attrs[action]);
14-
fn && fn();
13+
$scope.$eval($attrs[action]);
1514
wizard[action.replace("wz", "").toLowerCase()]();
1615
});
1716
});

0 commit comments

Comments
 (0)