From d7a44b7982b768c1a574c956cce5f1be743d896b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Mon, 1 Jun 2015 11:51:15 -0400 Subject: [PATCH 1/5] Adds "demoURL" to package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 18890e7f..9557ba8f 100644 --- a/package.json +++ b/package.json @@ -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" } } From cad51538f44cddefe1c769ad1f91c919cceead54 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 1 Jun 2015 12:12:35 -0400 Subject: [PATCH 2/5] =?UTF-8?q?Added=20Ember=20Observer=20badge=20to=20REA?= =?UTF-8?q?DME=20=F0=9F=91=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From a9f11804285c0cb3cd98763560245564019528dc Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Sat, 6 Jun 2015 15:27:19 -0400 Subject: [PATCH 3/5] Fixed faulty deprecation warning logic. - Closes #29 --- addon/mixins/in-viewport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }); } From 98a7a9193a1a7f217e2dac77ba42ae311b7e078d Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Sat, 6 Jun 2015 15:34:37 -0400 Subject: [PATCH 4/5] Updated ember-cli to 0.2.7 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9557ba8f..c68d59c6 100644 --- a/package.json +++ b/package.json @@ -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", From cfe6aa28aae9ddfb80e8cdf4e586c97c18bda99e Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Sat, 6 Jun 2015 15:46:55 -0400 Subject: [PATCH 5/5] Version bump to 1.2.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c68d59c6..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",