aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/SpecRunner.js
diff options
context:
space:
mode:
authorElliott Sprehn2010-11-08 23:26:36 -0800
committerMisko Hevery2010-11-09 13:39:12 -0800
commit257e97a65f7dd794faa5d8c0d72bbd5a894cb471 (patch)
tree8fa51fbe70c657985e03fdb1762832c3ff913679 /src/scenario/SpecRunner.js
parentc048f0d8e8385e96e9fff0b4ff733cecfa726d93 (diff)
downloadangular.js-257e97a65f7dd794faa5d8c0d72bbd5a894cb471.tar.bz2
Support substring matching of bindings with repeater(). Closes #123
Diffstat (limited to 'src/scenario/SpecRunner.js')
-rw-r--r--src/scenario/SpecRunner.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scenario/SpecRunner.js b/src/scenario/SpecRunner.js
index c6a56083..f3bbe2e6 100644
--- a/src/scenario/SpecRunner.js
+++ b/src/scenario/SpecRunner.js
@@ -111,6 +111,7 @@ angular.scenario.SpecRunner.prototype.addFutureAction = function(name, behavior,
$document.elements = function(selector) {
var args = Array.prototype.slice.call(arguments, 1);
selector = (self.selector || '') + ' ' + (selector || '');
+ selector = _jQuery.trim(selector) || '*';
angular.foreach(args, function(value, index) {
selector = selector.replace('$' + (index + 1), value);
});