define(['../string/typecast', './getQuery'], function (typecast, getQuery) {
/**
* Get query parameter value.
*/
function getParam(url, param, shouldTypecast){
var regexp = new RegExp('(\\?|&)'+ param + '=([^&]*)'), //matches `?param=value` or `¶m=value`, value = $2
result = regexp.exec( getQuery(url) ),
val = (result && result[2])? result[2] : null;
return shouldTypecast === false? val : typecast(val);
}
return getParam;
});
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|