aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Scenario.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-12 08:58:11 -0800
committerMisko Hevery2011-02-16 08:59:57 -0500
commitcdc093a463e8f8a925cbb9f2b55bedf0a1d8e7e8 (patch)
treec481c1b86986f156646eafc9d0ec4db852edb455 /src/scenario/Scenario.js
parent00cc9eb32a9387040d0175fcfd21cf9dcab6514f (diff)
downloadangular.js-cdc093a463e8f8a925cbb9f2b55bedf0a1d8e7e8.tar.bz2
reformated multiline trinary expressions to have a leading ?/:.
Diffstat (limited to 'src/scenario/Scenario.js')
-rw-r--r--src/scenario/Scenario.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scenario/Scenario.js b/src/scenario/Scenario.js
index 81c85a61..a70948cc 100644
--- a/src/scenario/Scenario.js
+++ b/src/scenario/Scenario.js
@@ -309,9 +309,9 @@ function browserTrigger(element, type) {
*/
_jQuery.fn.bindings = function(name) {
function contains(text, value) {
- return value instanceof RegExp ?
- value.test(text) :
- text && text.indexOf(value) >= 0;
+ return value instanceof RegExp
+ ? value.test(text)
+ : text && text.indexOf(value) >= 0;
}
var result = [];
this.find('.ng-binding:visible').each(function() {