diff options
| author | Peter Bacon Darwin | 2014-02-15 20:46:50 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:45 +0000 |
| commit | ecdb9a5688df3dc9c7c436574d5ec135354d11de (patch) | |
| tree | 284079a06898610f1ce319345f7d882b2ebad803 | |
| parent | c6f406f03b53cb6948afdd4720e54b134e463650 (diff) | |
| download | angular.js-ecdb9a5688df3dc9c7c436574d5ec135354d11de.tar.bz2 | |
docs(*): fix jshint issues in examples
| -rw-r--r-- | docs/content/guide/compiler.ngdoc | 2 | ||||
| -rw-r--r-- | docs/content/guide/concepts.ngdoc | 6 | ||||
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 4 | ||||
| -rw-r--r-- | src/ng/anchorScroll.js | 2 | ||||
| -rw-r--r-- | src/ng/directive/input.js | 2 | ||||
| -rw-r--r-- | src/ng/directive/ngController.js | 4 | ||||
| -rw-r--r-- | src/ng/directive/ngInclude.js | 4 | ||||
| -rw-r--r-- | src/ng/http.js | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/docs/content/guide/compiler.ngdoc b/docs/content/guide/compiler.ngdoc index d551456a..0a869a10 100644 --- a/docs/content/guide/compiler.ngdoc +++ b/docs/content/guide/compiler.ngdoc @@ -108,7 +108,7 @@ Here is a directive which makes any element draggable. Notice the `draggable` at $document.unbind('mousemove', mousemove); $document.unbind('mouseup', mouseup); } - } + }; }); </file> <file name="index.html"> diff --git a/docs/content/guide/concepts.ngdoc b/docs/content/guide/concepts.ngdoc index 5b4c8217..52d75387 100644 --- a/docs/content/guide/concepts.ngdoc +++ b/docs/content/guide/concepts.ngdoc @@ -203,7 +203,7 @@ Let's refactor our example and move the currency conversion into a service in an }; var convert = function (amount, inCurr, outCurr) { return amount * usdToForeignRates[outCurr] / usdToForeignRates[inCurr]; - } + }; return { currencies: currencies, @@ -331,7 +331,7 @@ The following example shows how this is done with Angular: var convert = function (amount, inCurr, outCurr) { return amount * usdToForeignRates[outCurr] / usdToForeignRates[inCurr]; - } + }; var refresh = function() { var url = YAHOO_FINANCE_URL_PATTERN. @@ -344,7 +344,7 @@ The following example shows how this is done with Angular: }); usdToForeignRates = newUsdToForeignRates; }); - } + }; refresh(); diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 95aae48f..6c81419a 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -791,7 +791,7 @@ element? $document.unbind('mousemove', mousemove); $document.unbind('mouseup', mouseup); } - } + }; }); </file> <file name="index.html"> @@ -829,7 +829,7 @@ to which tab is active. }; this.addPane = function(pane) { - if (panes.length == 0) { + if (panes.length === 0) { $scope.select(pane); } panes.push(pane); diff --git a/src/ng/anchorScroll.js b/src/ng/anchorScroll.js index f45f67f9..5c5a0387 100644 --- a/src/ng/anchorScroll.js +++ b/src/ng/anchorScroll.js @@ -33,7 +33,7 @@ // call $anchorScroll() $anchorScroll(); - } + }; } </file> <file name="style.css"> diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 2e051706..f88af155 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -960,7 +960,7 @@ var VALID_CLASS = 'ng-valid', if (browser.params.browser == 'safari') { // SafariDriver can't handle contenteditable. return; - }; + } var contentEditable = element(by.css('[contenteditable]')); expect(contentEditable.getText()).toEqual('Change me!'); diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js index 01558d2d..cbe7e833 100644 --- a/src/ng/directive/ngController.js +++ b/src/ng/directive/ngController.js @@ -99,7 +99,7 @@ expect(secondRepeat.findElement(by.model('contact.value')).getAttribute('value')) .toBe('john.smith@example.org'); - firstRepeat.findElement(by.linkText('clear')).click() + firstRepeat.findElement(by.linkText('clear')).click(); expect(firstRepeat.findElement(by.model('contact.value')).getAttribute('value')) .toBe(''); @@ -176,7 +176,7 @@ expect(secondRepeat.findElement(by.model('contact.value')).getAttribute('value')) .toBe('john.smith@example.org'); - firstRepeat.findElement(by.linkText('clear')).click() + firstRepeat.findElement(by.linkText('clear')).click(); expect(firstRepeat.findElement(by.model('contact.value')).getAttribute('value')) .toBe(''); diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index 09f03895..9b271686 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -59,8 +59,8 @@ <file name="script.js"> function Ctrl($scope) { $scope.templates = - [ { name: 'template1.html', url: 'template1.html'} - , { name: 'template2.html', url: 'template2.html'} ]; + [ { name: 'template1.html', url: 'template1.html'}, + { name: 'template2.html', url: 'template2.html'} ]; $scope.template = $scope.templates[0]; } </file> diff --git a/src/ng/http.js b/src/ng/http.js index 62e255db..04cb3d28 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -642,7 +642,7 @@ function $HttpProvider() { sampleGetBtn.click(); fetchBtn.click(); expect(status.getText()).toMatch('200'); - expect(data.getText()).toMatch(/Hello, \$http!/) + expect(data.getText()).toMatch(/Hello, \$http!/); }); it('should make a JSONP request to angularjs.org', function() { |
