diff options
| author | Vojta Jina | 2013-10-22 14:41:21 -0700 |
|---|---|---|
| committer | Vojta Jina | 2013-10-22 15:32:41 -0700 |
| commit | f2fab498303e00d199cb3d19a008670e214d5c10 (patch) | |
| tree | 3aa88fdb1f63bbed45c7541232a0fdfac226c126 /src/ngScenario/Scenario.js | |
| parent | 934a95d3ef3f72dfc37b0b564624cb4a1286d4f4 (diff) | |
| download | angular.js-f2fab498303e00d199cb3d19a008670e214d5c10.tar.bz2 | |
style: make jshint happy
Diffstat (limited to 'src/ngScenario/Scenario.js')
| -rw-r--r-- | src/ngScenario/Scenario.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ngScenario/Scenario.js b/src/ngScenario/Scenario.js index dda9a9e3..9a30d8a9 100644 --- a/src/ngScenario/Scenario.js +++ b/src/ngScenario/Scenario.js @@ -39,6 +39,7 @@ angular.scenario.output = angular.scenario.output || function(name, fn) { */ angular.scenario.dsl = angular.scenario.dsl || function(name, fn) { angular.scenario.dsl[name] = function() { + /* jshint -W040 *//* The dsl binds `this` for us when calling chained functions */ function executeStatement(statement, args) { var result = statement.apply(this, args); if (angular.isFunction(result) || result instanceof angular.scenario.Future) @@ -270,15 +271,15 @@ _jQuery.fn.bindings = function(windowJquery, bindExp) { if (actualExp) { actualExp = actualExp.replace(/\s/g, ''); if (actualExp == bindExp) return true; - if (actualExp.indexOf(bindExp) == 0) { + if (actualExp.indexOf(bindExp) === 0) { return actualExp.charAt(bindExp.length) == '|'; } } - } + }; } else if (bindExp) { match = function(actualExp) { return actualExp && bindExp.exec(actualExp); - } + }; } else { match = function(actualExp) { return !!actualExp; @@ -290,7 +291,7 @@ _jQuery.fn.bindings = function(windowJquery, bindExp) { } function push(value) { - if (value == undefined) { + if (value === undefined) { value = ''; } else if (typeof value != 'string') { value = angular.toJson(value); |
