ember-responsive
Advanced tools
Comparing version 1.1.0 to 1.1.1
import Ember from 'ember'; | ||
export function initialize(instance) { | ||
var media = instance.container.lookupFactory('responsive:media'); | ||
var breakpoints = instance.container.lookupFactory('breakpoints:main'); | ||
function lookupFactory(app, name) { | ||
if (app.resolveRegistration) { | ||
return app.resolveRegistration(name); | ||
} | ||
return app.container.lookupFactory(name); | ||
} | ||
export function initialize(app) { | ||
var media = lookupFactory(app, 'responsive:media'); | ||
var breakpoints = lookupFactory(app, 'breakpoints:main'); | ||
if (breakpoints) { | ||
@@ -6,0 +16,0 @@ for (var name in breakpoints) { |
@@ -77,3 +77,3 @@ import Ember from 'ember'; | ||
*/ | ||
export default Ember.Object.extend({ | ||
export default Ember.Object.extend({ | ||
@@ -80,0 +80,0 @@ /** |
{ | ||
"name": "ember-responsive", | ||
"dependencies": { | ||
"ember": "1.11.1", | ||
"ember": "1.13.10", | ||
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3", | ||
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3", | ||
"ember-data": "1.0.0-beta.16.1", | ||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4", | ||
@@ -9,0 +8,0 @@ "ember-qunit": "0.3.1", |
# Changelog | ||
### 1.1.1 | ||
- Fixes support for Ember 2.1 beta (#37, thanks @jasonmit) | ||
- Upgrade addon to use Ember 1.13.10 | ||
- Updates Travis CI config and testing to use matrix | ||
### 1.1.0 | ||
@@ -4,0 +9,0 @@ - Upgrade to ember-cli 0.2.3 |
{ | ||
"name": "ember-responsive", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "An ember-cli addon that give you a simple, Ember-aware way of dealing with media queries.", | ||
"directories": { | ||
@@ -11,3 +12,3 @@ "doc": "doc", | ||
"build": "ember build", | ||
"test": "ember test" | ||
"test": "ember try:testall" | ||
}, | ||
@@ -31,3 +32,2 @@ "repository": "https://github.com/freshbooks/ember-responsive", | ||
"ember-cli-uglify": "1.0.1", | ||
"ember-data": "1.0.0-beta.16.1", | ||
"ember-export-application-global": "^1.0.2", | ||
@@ -45,4 +45,5 @@ "ember-disable-prototype-extensions": "^1.0.0", | ||
"ember-addon": { | ||
"configPath": "tests/dummy/config" | ||
"configPath": "tests/dummy/config", | ||
"demoURL": "https://www.justinbull.ca/ember-responsive-demo/" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# ember-responsive | ||
# ember-responsive [![Build Status](https://travis-ci.org/freshbooks/ember-responsive.svg?branch=master)](https://travis-ci.org/freshbooks/ember-responsive) [![Ember Observer Score](http://emberobserver.com/badges/ember-responsive.svg)](http://emberobserver.com/addons/ember-responsive) | ||
@@ -25,4 +25,3 @@ ember-responsive is an ember-cli addon that give you a simple, Ember-aware way | ||
After that, simply register the breakpoints that are pertinent to | ||
your application in `app/breakpoints.js`: | ||
After that, simply register the breakpoints that are pertinent to your application in `app/breakpoints.js`: | ||
@@ -34,4 +33,4 @@ ``` | ||
desktop: '(min-width: 993px) and (max-width: 1200px)', | ||
jumbo: '(min-width: 1201px)', | ||
} | ||
jumbo: '(min-width: 1201px)' | ||
}; | ||
``` | ||
@@ -77,2 +76,1 @@ | ||
We've released it under the MIT license. | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28149
13
481
47
74
1