Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/more-routing/route-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1
2 (function(scope) { 1 (function(scope) {
3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; 2 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {};
4 MoreRouting.Route = Route; 3 MoreRouting.Route = Route;
5 4
6 // Note that this can differ from the part separator defined by the driver. The 5 // Note that this can differ from the part separator defined by the driver. The
7 // driver's separator is used when parsing/generating URLs given to the client, 6 // driver's separator is used when parsing/generating URLs given to the client,
8 // whereas this one is for route definitions. 7 // whereas this one is for route definitions.
9 var PART_SEPARATOR = '/'; 8 var PART_SEPARATOR = '/';
10 var PARAM_SENTINEL = ':'; 9 var PARAM_SENTINEL = ':';
11 var SEPARATOR_CLEANER = /\/\/+/g; 10 var SEPARATOR_CLEANER = /\/\/+/g;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 203
205 function namedParams(compiled) { 204 function namedParams(compiled) {
206 var result = []; 205 var result = [];
207 compiled.forEach(function(part) { 206 compiled.forEach(function(part) {
208 if (part.type === 'static') return; 207 if (part.type === 'static') return;
209 result.push(part.name); 208 result.push(part.name);
210 }); 209 });
211 return result; 210 return result;
212 } 211 }
213 212
214 })(window); 213 })(window);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698