diff --git a/README.md b/README.md index 27223b34..1fe71bf9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [Read the blogpost](https://medium.com/delightful-ui-for-ember-apps/creating-an-ember-cli-addon-detecting-ember-js-components-entering-or-leaving-the-viewport-7d95ceb4f5ed) -[![npm version](https://badge.fury.io/js/ember-in-viewport.svg)](http://badge.fury.io/js/ember-in-viewport) [![Build Status](https://travis-ci.org/dockyard/ember-in-viewport.svg)](https://travis-ci.org/dockyard/ember-in-viewport) +[![npm version](https://badge.fury.io/js/ember-in-viewport.svg)](http://badge.fury.io/js/ember-in-viewport) [![Build Status](https://travis-ci.org/dockyard/ember-in-viewport.svg)](https://travis-ci.org/dockyard/ember-in-viewport) [![Ember Observer Score](http://emberobserver.com/badges/ember-in-viewport.svg)](http://emberobserver.com/addons/ember-in-viewport) This `ember-cli` addon adds a simple, highly performant Ember Mixin to your app. This Mixin, when added to a `View` or `Component` (collectively referred to as `Components`), will allow you to check if that `Component` has entered the browser's viewport. By default, the Mixin uses the `requestAnimationFrame` API if it detects it in your user's browser – failing which, it fallsback to using the Ember run loop and event listeners. diff --git a/addon/mixins/in-viewport.js b/addon/mixins/in-viewport.js index 12f110ac..4ab38cda 100644 --- a/addon/mixins/in-viewport.js +++ b/addon/mixins/in-viewport.js @@ -244,7 +244,7 @@ export default Ember.Mixin.create({ const isListening = this.has(triggerName); deprecate( `[ember-in-viewport] ${triggerName} is deprecated, please use \`didScroll(direction)\` instead.`, - isListening + !isListening ); }); } diff --git a/package.json b/package.json index 18890e7f..f20ba490 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-in-viewport", - "version": "1.2.4", + "version": "1.2.5", "description": "Detect if an Ember View or Component is in the viewport @ 60FPS", "directories": { "doc": "doc", @@ -19,7 +19,7 @@ "license": "MIT", "devDependencies": { "broccoli-asset-rev": "^2.0.2", - "ember-cli": "0.2.6", + "ember-cli": "^0.2.7", "ember-cli-app-version": "0.3.3", "ember-cli-content-security-policy": "0.4.0", "ember-cli-dependency-checker": "^1.0.0", @@ -32,7 +32,7 @@ "ember-disable-proxy-controllers": "^1.0.0", "ember-export-application-global": "^1.0.2", "ember-suave": "0.1.9", - "ember-try": "0.0.4" + "ember-try": "0.0.6" }, "keywords": [ "ember-addon", @@ -47,6 +47,7 @@ "ember-cli-babel": "^5.0.0" }, "ember-addon": { - "configPath": "tests/dummy/config" + "configPath": "tests/dummy/config", + "demoURL": "http://development.ember-in-viewport-demo.divshot.io" } }