Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An opinionated PR #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

An opinionated PR #267

wants to merge 1 commit into from

Conversation

longlho
Copy link
Contributor

@longlho longlho commented Dec 1, 2014

  • Add a build process (gulp in particular)
  • Use browserify to package browser script, which will expose window.Router automatically
  • Make browser.js inherits from router.js

For discussions:

  • Right now server testing uses vows & browser uses qunit. Any chance of unifying them w/ mocha & expect.js or something? I wanna hook up either browserstack/sauce labs/phantomjs to this to automate build process.
  • This library supports Node 0.4, yet testings stops at 0.8. Any chance of upping Node version support to 0.8?
  • This library also uses ES5 functions (like Array.isArray), maybe we need some instructions on ES5shim requirements for <IE9 users?

@longlho longlho force-pushed the master branch 2 times, most recently from 00b1683 to 0ed4bf1 Compare December 2, 2014 18:28
};

Router.prototype = Object.create(BaseRouter.prototype);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't really look browser friendly to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Object.create is part of ES5 & since we've already used Array.isArray (ES5) in a bunch of places I figure this is safe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants