Comparing version 1.1.1 to 1.1.2
@@ -79,2 +79,3 @@ /** @module bigwheel */ | ||
s.autoResize = s.autoResize === undefined ? true : s.autoResize; | ||
s.duplicate = s.duplicate === undefined ? true : s.duplicate; | ||
@@ -152,3 +153,4 @@ // setup the router | ||
show: function( content, data ) { | ||
if (!this.s.duplicate && data && data.route==this.lastRoute) return; | ||
// this is the original router callback passed in | ||
@@ -158,2 +160,3 @@ if( this.onRouteCallBack ) | ||
// check if content is an array or function or object | ||
@@ -180,2 +183,4 @@ if( Array.isArray( content ) ) { | ||
} | ||
this.lastRoute = (data) ? data.route : undefined; | ||
}, | ||
@@ -182,0 +187,0 @@ |
{ | ||
"name": "bigwheel", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "bigwheel is an mvc framework that focuses on animation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,2 +52,6 @@ <a name="module_bigwheel"></a> | ||
// by default it's value is '#!' | ||
duplicate: true, // by default this value is true. When this value is | ||
// true, you will be able to go to the same route | ||
// multiple times in a row, useful for routes | ||
// that contain wild cards | ||
} | ||
@@ -54,0 +58,0 @@ ``` |
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
13066
224
98