diff --git a/build/jquery.steps.js b/build/jquery.steps.js index 99ca096..4de1569 100644 --- a/build/jquery.steps.js +++ b/build/jquery.steps.js @@ -1333,6 +1333,19 @@ $.fn.steps.add = function (step) return insertStep(this, getOptions(this), state, state.stepCount, step); }; +/** + * Gets the step count. + * + * @method count + * @return {Integer} step count + * @for steps + **/ +$.fn.steps.count = function () +{ + var state = getState(this); + return state.stepCount; +}; + /** * Removes the control functionality completely and transforms the current state to the initial HTML structure. * diff --git a/src/publics.js b/src/publics.js index 9a80050..8619add 100644 --- a/src/publics.js +++ b/src/publics.js @@ -36,6 +36,19 @@ $.fn.steps.add = function (step) return insertStep(this, getOptions(this), state, state.stepCount, step); }; +/** + * Gets the step count. + * + * @method count + * @return {Integer} step count + * @for steps + **/ +$.fn.steps.count = function () +{ + var state = getState(this); + return state.stepCount; +}; + /** * Removes the control functionality completely and transforms the current state to the initial HTML structure. *