Skip to content

Commit

Permalink
Merge pull request #9 from gasolin/lintfix
Browse files Browse the repository at this point in the history
Bug 1159783 - [gaia-component] lint fix and add auto run lint command in travis
  • Loading branch information
wilsonpage committed May 1, 2015
2 parents 5de1296 + 68f681b commit da66d81
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ language: node_js
node_js:
- '0.10'

env:
- TEST_SUITE=unit

install:
- npm install
- ./node_modules/.bin/mozilla-download ./firefox/ --branch=mozilla-central --product firefox
Expand All @@ -15,4 +12,13 @@ before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script: "npm test"
script:
- $CI_ACTION

env:
global:
- TEST_SUITE=unit
matrix:
- CI_ACTION="npm run lint"
- CI_ACTION="npm test"

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ A wrapper around `document.registerElement()` to define a custom-element with wo
$ bower install gaia-components/gaia-component
```

## Examples

- [Example](http://gaia-components.github.io/gaia-component/)

## Usage

```js
Expand Down
1 change: 0 additions & 1 deletion gaia-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/**
* Locals
*/

var textContent = Object.getOwnPropertyDescriptor(Node.prototype,
'textContent');
var innerHTML = Object.getOwnPropertyDescriptor(Element.prototype, 'innerHTML');
Expand Down
4 changes: 3 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ suite('gaia-component', function() {
rtl: true,

created: function() {
document.addEventListener('dirchanged', () => this.dirChanged());
document.addEventListener('dirchanged', function() {
this.dirChanged();
}.bind(this));
},

dirChanged: function() {
Expand Down

0 comments on commit da66d81

Please sign in to comment.