bye printdebug

This commit is contained in:
thosakwe 2016-12-21 18:28:00 -05:00
parent 0e299518f1
commit df9d407c22
5 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
# angel_route
![version 1.0.0-dev+18](https://img.shields.io/badge/version-1.0.0--dev+18-red.svg)
![version 1.0.0-dev+19](https://img.shields.io/badge/version-1.0.0--dev+19-red.svg)
![build status](https://travis-ci.org/angel-dart/route.svg)
A powerful, isomorphic routing library for Dart.

View file

@ -127,7 +127,7 @@ class Route {
}
void _printDebug(msg) {
if (debug == true) print(msg);
// if (debug == true) print(msg);
}
Route._base();
@ -340,8 +340,8 @@ class Route {
matcher.firstMatch(path.replaceAll(_straySlashes, ''));
/// Extracts route parameters from a given path.
Map parseParameters(String requestPath) {
Map result = {};
Map<String, String> parseParameters(String requestPath) {
Map<String, String> result = {};
Iterable<String> values =
_parseParameters(requestPath.replaceAll(_straySlashes, ''));

View file

@ -38,7 +38,7 @@ class Router extends Extensible {
Router({this.debug: false});
void _printDebug(msg) {
if (debug == true) print(msg);
// if (debug == true) print(msg);
}
/// Adds a route that responds to the given path
@ -66,7 +66,7 @@ class Router extends Extensible {
/// Returns a [Router] with a duplicated version of this tree.
Router clone() {
final router = new Router(debug: debug);
final newMounted = new Map.from(mounted);
final newMounted = new Map<Pattern, Router>.from(mounted);
for (Route route in routes) {
if (route is! SymlinkRoute) {

View file

@ -59,7 +59,7 @@ class RoutingResult {
/// All parameters on this sub-path and its children.
Map<String, dynamic> get allParams {
final params = {};
final Map<String, dynamic> params = {};
var search = this;
while (search != null) {

View file

@ -1,6 +1,6 @@
name: angel_route
description: A powerful, isomorphic routing library for Dart.
version: 1.0.0-dev+18
version: 1.0.0-dev+19
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_route
dev_dependencies: