Skip to content
Permalink
Browse files

support modernless browsers

  • Loading branch information...
bevacqua committed Sep 18, 2014
1 parent 5d18135 commit 9d1f0f7f85edf4f161fa01a251b4cc20b91aa664
Showing with 37 additions and 6 deletions.
  1. +1 −0 .jshintignore
  2. +22 −0 .jshintrc
  3. +4 −0 CHANGELOG.md
  4. +4 −0 browser/activator.js
  5. +2 −2 browser/partial.js
  6. +3 −3 lib/cli.js
  7. +1 −1 package.json
@@ -0,0 +1 @@
node_modules
@@ -0,0 +1,22 @@
{
"curly": true,
"eqeqeq": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"sub": true,
"validthis": true,
"undef": true,
"trailing": true,
"boss": true,
"eqnull": true,
"strict": true,
"immed": true,
"expr": true,
"latedef": "nofunc",
"quotmark": "single",
"indent": 2,
"node": true,
"browser": true
}
@@ -1,3 +1,7 @@
# v1.3.0 Ion Drive

- Browser support when `history` API is missing

# v1.2.2 Switcheroo

- Moved around arguments for `'error'` event
@@ -5,8 +5,12 @@ var fetcher = require('./fetcher');
var partial = require('./partial');
var router = require('./router');
var state = require('./state');
var modern = 'history' in window && 'pushState' in history;

function go (url, query, options) {
if (!modern) {
location.href = url + query;
}
var context = options && options.context || null;
var q = query || '';

@@ -13,8 +13,8 @@ function positioning () {
if (!target) {
target = document.documentElement;
}
raf(focus);
function focus () {
raf(focusin);
function focusin () {
target.scrollIntoView();
}
}
@@ -35,17 +35,17 @@ function compose (routes) {
first = true;
put('var templates = {');
templates.forEach(template);
put('\n};\n\n')
put('\n};\n\n');

first = true;
put('var controllers = {');
controllers.forEach(controller);
put('\n};\n\n')
put('\n};\n\n');

first = true;
put('var routes = {');
routes.forEach(route);
put('\n};\n\n')
put('\n};\n\n');

put('module.exports = {\n');
put(' templates: templates,\n');
@@ -1,7 +1,7 @@
{
"name": "taunus",
"description": "Micro Isomorphic MVC Engine for Node.js",
"version": "1.2.2",
"version": "1.3.0",
"homepage": "https://github.com/bevacqua/taunus",
"authors": [
"Nicolas Bevacqua <nicolasbevacqua@gmail.com>"

0 comments on commit 9d1f0f7

Please sign in to comment.
You can’t perform that action at this time.