can-route-pushstate
Advanced tools
Comparing version 3.0.0-pre.3 to 3.0.0-pre.4
@@ -8,5 +8,8 @@ var stealTools = require("steal-tools"); | ||
outputs: { | ||
"+cjs": {}, | ||
"+amd": {}, | ||
"+global-js": {} | ||
"+standalone": { | ||
exports: { | ||
"can-util/namespace": "can" | ||
} | ||
} | ||
} | ||
@@ -13,0 +16,0 @@ }).catch(function(e){ |
@@ -9,7 +9,15 @@ /* jshint asi:true,scripturl:true */ | ||
if (window.history && history.pushState) { | ||
makeTest("can-map"); | ||
makeTest("can-define/map/map"); | ||
} | ||
QUnit.module("can/route/pushstate", { | ||
function makeTest(mapModuleName){ | ||
QUnit.module("can/route/pushstate with "+mapModuleName, { | ||
setup: function () { | ||
route._teardown(); | ||
route.defaultBinding = "pushstate"; | ||
window.MAP_MODULE_NAME = mapModuleName; | ||
} | ||
@@ -696,3 +704,3 @@ }); | ||
var timer; | ||
info.route.bind("change", function () { | ||
info.route.serializedCompute.bind("change", function () { | ||
clearTimeout(timer); | ||
@@ -699,0 +707,0 @@ timer = setTimeout(function () { |
@@ -18,2 +18,3 @@ // # can/route/pushstate/pushstate.js | ||
var diffObject = require('can-util/js/diff-object/diff-object'); | ||
var namespace = require('can-util/namespace'); | ||
@@ -151,3 +152,2 @@ var canEvent = require('can-event'); | ||
} | ||
console.log(toRemove); | ||
} | ||
@@ -254,2 +254,2 @@ if(toRemove.length > 0) { | ||
module.exports = route; | ||
module.exports = namespace.route = route; |
{ | ||
"name": "can-route-pushstate", | ||
"version": "3.0.0-pre.3", | ||
"version": "3.0.0-pre.4", | ||
"description": "Pushstate for can-route", | ||
@@ -30,3 +30,3 @@ "homepage": "https://canjs.com", | ||
}, | ||
"main": "dist/cjs/can-route-pushstate", | ||
"main": "can-route-pushstate", | ||
"browser": { | ||
@@ -43,16 +43,10 @@ "transform": [ | ||
"keywords": [ | ||
"canjs" | ||
"canjs", | ||
"canjs-plugin", | ||
"donejs" | ||
], | ||
"system": { | ||
"main": "can-route-pushstate", | ||
"configDependencies": [ | ||
"live-reload" | ||
], | ||
"npmIgnore": [ | ||
"documentjs", | ||
"testee", | ||
"generator-donejs", | ||
"donejs-cli", | ||
"steal-tools" | ||
], | ||
"npmAlgorithm": "flat" | ||
@@ -63,5 +57,6 @@ }, | ||
"can-route": "^3.0.0-pre.1", | ||
"can-util": "^3.0.0-pre.10" | ||
"can-util": "^3.0.0-pre.21" | ||
}, | ||
"devDependencies": { | ||
"can-define": "^0.7.4", | ||
"can-map": "^3.0.0-pre.3", | ||
@@ -68,0 +63,0 @@ "cssify": "^0.6.0", |
Sorry, the diff of this file is not supported yet
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
41989
998
12
Updatedcan-util@^3.0.0-pre.21