navigation-knockout
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -0,1 +1,3 @@ | ||
/// <reference path="navigation.d.ts" /> | ||
/// <reference path="knockout.d.ts" /> | ||
var Navigation = require('navigation'); | ||
@@ -24,6 +26,9 @@ var ko = require('knockout'); | ||
return false; | ||
if (val != null && val.toString()) { | ||
if (val != null) { | ||
var trackTypes = Navigation.StateContext.state.trackTypes; | ||
var currentVal = Navigation.StateContext.data[key]; | ||
return currentVal != null && (trackTypes ? val === currentVal : val.toString() == currentVal.toString()); | ||
if (currentVal != null) | ||
return trackTypes ? val === currentVal : val.toString() == currentVal.toString(); | ||
else | ||
return val === ''; | ||
} | ||
@@ -52,3 +57,6 @@ return true; | ||
e['returnValue'] = false; | ||
Navigation.StateController.navigateLink(link); | ||
var historyAction = ko.unwrap(allBindings.get('historyAction')); | ||
if (typeof historyAction === 'string') | ||
historyAction = Navigation.HistoryAction[historyAction]; | ||
Navigation.StateController.navigateLink(link, false, historyAction); | ||
} | ||
@@ -55,0 +63,0 @@ } |
{ | ||
"name": "navigation-knockout", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A plugin for the Navigation routing library that lets you build Hyperlinks using Knockout's binding syntax", | ||
@@ -5,0 +5,0 @@ "main": "navigation-knockout.js", |
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
8914
166