Skip to content

Commit 5eac2fe

Browse files
committed
Methods for $state now have proper names.
1 parent a480d1e commit 5eac2fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/state.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,15 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory, $
302302
return transition;
303303
};
304304

305-
$state.is = function (stateOrName) {
305+
$state.is = function is(stateOrName) {
306306
return $state.$current === findState(stateOrName);
307307
};
308308

309-
$state.includes = function (stateOrName) {
309+
$state.includes = function includes(stateOrName) {
310310
return $state.$current.includes[findState(stateOrName).name];
311311
};
312312

313-
$state.href = function (stateOrName, params, options) {
313+
$state.href = function href(stateOrName, params, options) {
314314
options = extend({ lossy: true }, options || {});
315315
var state = findState(stateOrName);
316316
var nav = (state && options.lossy) ? state.navigable : state;

0 commit comments

Comments
 (0)