Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Prep for v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Mar 11, 2015
1 parent 33b87d3 commit 72ed445
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 79 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "ko-component-router",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/caseyWebb/ko-component-router",
"authors": [
"Casey Webb <notcaseywebb@gmail.com>"
Expand Down
123 changes: 49 additions & 74 deletions dist/ko-component-router.js
Expand Up @@ -11,41 +11,41 @@
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/

/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/

/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/

/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/

/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/

/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/


/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/

/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/

/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/

/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
Expand Down Expand Up @@ -1283,7 +1283,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 7 */
/***/ function(module, exports, __webpack_require__) {

module.exports = "<div data-bind='component: {\r\n\r\n name: component,\r\n params: routeParams\r\n\r\n}'></div>";
module.exports = "<div data-bind='component: {\n\n name: component,\n params: routeParams\n\n}'></div>";

/***/ },
/* 8 */
Expand Down Expand Up @@ -2120,14 +2120,14 @@ return /******/ (function(modules) { // webpackBootstrap
function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(17)))

/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {



/***/ },
/* 12 */
Expand Down Expand Up @@ -2384,7 +2384,7 @@ return /******/ (function(modules) { // webpackBootstrap
};

module.exports = isFunction;

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ },
Expand Down Expand Up @@ -2512,69 +2512,40 @@ return /******/ (function(modules) { // webpackBootstrap
// shim for using process in browser

var process = module.exports = {};
var queue = [];
var draining = false;

process.nextTick = (function () {
var canSetImmediate = typeof window !== 'undefined'
&& window.setImmediate;
var canMutationObserver = typeof window !== 'undefined'
&& window.MutationObserver;
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;

if (canSetImmediate) {
return function (f) { return window.setImmediate(f) };
function drainQueue() {
if (draining) {
return;
}

var queue = [];

if (canMutationObserver) {
var hiddenDiv = document.createElement("div");
var observer = new MutationObserver(function () {
var queueList = queue.slice();
queue.length = 0;
queueList.forEach(function (fn) {
fn();
});
});

observer.observe(hiddenDiv, { attributes: true });

return function nextTick(fn) {
if (!queue.length) {
hiddenDiv.setAttribute('yes', 'no');
}
queue.push(fn);
};
draining = true;
var currentQueue;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
var i = -1;
while (++i < len) {
currentQueue[i]();
}
len = queue.length;
}

if (canPost) {
window.addEventListener('message', function (ev) {
var source = ev.source;
if ((source === window || source === null) && ev.data === 'process-tick') {
ev.stopPropagation();
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);

return function nextTick(fn) {
queue.push(fn);
window.postMessage('process-tick', '*');
};
draining = false;
}
process.nextTick = function (fun) {
queue.push(fun);
if (!draining) {
setTimeout(drainQueue, 0);
}

return function nextTick(fn) {
setTimeout(fn, 0);
};
})();
};

process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};

function noop() {}

Expand All @@ -2595,6 +2566,7 @@ return /******/ (function(modules) { // webpackBootstrap
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };


/***/ },
Expand Down Expand Up @@ -3400,7 +3372,7 @@ return /******/ (function(modules) { // webpackBootstrap
length = object.length;
}
if ((typeof Ctor == 'function' && Ctor.prototype === object) ||
(typeof object != 'function' && (length && isLength(length)))) {
(typeof object != 'function' && (length && isLength(length)))) {
return shimKeys(object);
}
return isObject(object) ? nativeKeys(object) : [];
Expand Down Expand Up @@ -3682,7 +3654,7 @@ return /******/ (function(modules) { // webpackBootstrap
}

module.exports = bufferClone;

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ },
Expand Down Expand Up @@ -3973,7 +3945,7 @@ return /******/ (function(modules) { // webpackBootstrap
}(0, 0));

module.exports = support;

/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ },
Expand Down Expand Up @@ -4294,8 +4266,10 @@ return /******/ (function(modules) { // webpackBootstrap
othCtor = other.constructor;

// Non `Object` object instances with different constructors are not equal.
if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) &&
!(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
if (objCtor != othCtor &&
('constructor' in object && 'constructor' in other) &&
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
return false;
}
}
Expand Down Expand Up @@ -4389,3 +4363,4 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }
/******/ ])
});
;
4 changes: 2 additions & 2 deletions dist/ko-component-router.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "ko-component-router",
"version": "1.0.0",
"version": "1.0.1",
"description": "Component-based routing for KnockoutJS",
"main": "dist/ko-component-router.js",
"scripts": {
Expand All @@ -24,7 +24,7 @@
"license": "MIT",
"dependencies": {
"knockout": "^3.3.0",
"lodash": "^3.3.1",
"lodash": "^3.5.0",
"path": "^0.11.14",
"path-to-regexp": "^1.0.3"
},
Expand Down

0 comments on commit 72ed445

Please sign in to comment.