language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-extension-support/lib/container_debug_adapter.js | @@ -77,7 +77,10 @@ export default EmberObject.extend({
@return {boolean} whether a list is available for this type.
*/
canCatalogEntriesByType: function(type) {
- if (type === 'model' || type === 'template') return false;
+ if (type === 'model' || type === 'template') {
+ return false;
+ }
+
... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-htmlbars/tests/helpers/yield_test.js | @@ -321,7 +321,10 @@ test("yield with nested components (#3220)", function(){
layout: compile("{{yield}}"),
_yield: function (context, options, morph) {
count++;
- if (count > 1) throw new EmberError('is looping');
+ if (count > 1) {
+ throw new EmberError('is looping');
+ }
+
... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/array.js | @@ -79,12 +79,20 @@ var lastIndexOf = defineNativeShim(ArrayPrototype.lastIndexOf, function(obj, fro
var len = this.length;
var idx;
- if (fromIndex === undefined) fromIndex = len-1;
- else fromIndex = (fromIndex < 0) ? Math.ceil(fromIndex) : Math.floor(fromIndex);
- if (fromIndex < 0) fromIndex +=... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/chains.js | @@ -104,7 +104,9 @@ function ChainNode(parent, key, value) {
var ChainNodePrototype = ChainNode.prototype;
function lazyGet(obj, key) {
- if (!obj) return undefined;
+ if (!obj) {
+ return undefined;
+ }
var meta = obj['__ember_meta__'];
// check if object meant only to be a prototype | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/dependent_keys.js | @@ -53,7 +53,9 @@ export function addDependentKeys(desc, obj, keyName, meta) {
// add all of its dependent keys.
var depsMeta, idx, len, depKey, keys;
var depKeys = desc._dependentKeys;
- if (!depKeys) return;
+ if (!depKeys) {
+ return;
+ }
depsMeta = metaForDeps(meta);
@@ -73,7 +75,9 @@ export f... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/events.js | @@ -127,9 +127,13 @@ export function addListener(obj, eventName, target, method, once) {
var actionIndex = indexOf(actions, target, method);
var flags = 0;
- if (once) flags |= ONCE;
+ if (once) {
+ flags |= ONCE;
+ }
- if (actionIndex !== -1) { return; }
+ if (actionIndex !== -1) {
+ return;
+ }
... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/platform/define_property.js | @@ -24,7 +24,10 @@
@return {void}
*/
var defineProperty = (function checkCompliance(defineProperty) {
- if (!defineProperty) return;
+ if (!defineProperty) {
+ return;
+ }
+
try {
var a = 5;
var obj = {};
@@ -38,9 +41,14 @@ var defineProperty = (function checkCompliance(defineProperty) {
... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/properties.js | @@ -91,7 +91,9 @@ export function DEFAULT_GETTER_FUNCTION(name) {
export function defineProperty(obj, keyName, desc, data, meta) {
var descs, existingDesc, watching, value;
- if (!meta) meta = metaFor(obj);
+ if (!meta) {
+ meta = metaFor(obj);
+ }
descs = meta.descs;
existingDesc = meta.descs[keyName... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/property_get.js | @@ -115,8 +115,13 @@ function normalizeTuple(target, path) {
var isGlobal = !hasThis && isGlobalPath(path);
var key;
- if (!target || isGlobal) target = Ember.lookup;
- if (hasThis) path = path.slice(5);
+ if (!target || isGlobal) {
+ target = Ember.lookup;
+ }
+
+ if (hasThis) {
+ path = path.slice(... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/lib/utils.js | @@ -98,7 +98,9 @@ function intern(str) {
var obj = {};
obj[str] = 1;
for (var key in obj) {
- if (key === str) return key;
+ if (key === str) {
+ return key;
+ }
}
return str;
}
@@ -181,7 +183,10 @@ export var NEXT_SUPER_PROPERTY = {
@return {String} the guid
*/
export function genera... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/accessors/get_test.js | @@ -22,7 +22,9 @@ test('should get arbitrary properties on an object', function() {
};
for(var key in obj) {
- if (!obj.hasOwnProperty(key)) continue;
+ if (!obj.hasOwnProperty(key)) {
+ continue;
+ }
equal(get(obj, key), obj[key], key);
}
@@ -105,7 +107,9 @@ test('should get arbitrary p... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/accessors/set_test.js | @@ -18,7 +18,10 @@ test('should set arbitrary properties on an object', function() {
};
for(var key in obj) {
- if (!obj.hasOwnProperty(key)) continue;
+ if (!obj.hasOwnProperty(key)) {
+ continue;
+ }
+
equal(set(newObj, key, obj[key]), obj[key], 'should return value');
equal(get(newObj... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/binding/connect_test.js | @@ -9,7 +9,9 @@ import { set } from 'ember-metal/property_set';
import { get } from 'ember-metal/property_get';
function performTest(binding, a, b, get, set, connect) {
- if (connect === undefined) connect = function() {binding.connect(a);};
+ if (connect === undefined) {
+ connect = function() {binding.connec... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/computed_test.js | @@ -629,7 +629,9 @@ test('adding a computed property should show up in key iteration',function() {
defineProperty(obj, 'foo', computed(function() {}));
var found = [];
- for(var key in obj) found.push(key);
+ for(var key in obj) {
+ found.push(key);
+ }
ok(indexOf(found, 'foo')>=0, 'should find compute... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/mixin/method_test.js | @@ -136,7 +136,9 @@ test('_super from a first-of-two mixins with no superclass function does not err
var remaining = 3;
var MixinA = Mixin.create({
foo: function() {
- if (remaining-- > 0) this._super();
+ if (remaining-- > 0) {
+ this._super();
+ }
}
});
| true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/observer_test.js | @@ -450,8 +450,9 @@ testBoth('deferring property change notifications safely despite exceptions', fu
throw exc;
});
} catch(err) {
- if (err !== exc)
+ if (err !== exc) {
throw err;
+ }
}
equal(fooCount, 1, 'foo should have fired once'); | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/platform/defineProperty_test.js | @@ -4,7 +4,9 @@ import EnumerableUtils from 'ember-metal/enumerable_utils';
function isEnumerable(obj, keyName) {
var keys = [];
for(var key in obj) {
- if (obj.hasOwnProperty(key)) keys.push(key);
+ if (obj.hasOwnProperty(key)) {
+ keys.push(key);
+ }
}
return EnumerableUtils.indexOf(keys, k... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/props_helper.js | @@ -15,8 +15,11 @@ var testBoth = function(testname, callback) {
});
test(testname+' using accessors', function() {
- if (Ember.USES_ACCESSORS) callback(aget, aset);
- else ok('SKIPPING ACCESSORS');
+ if (Ember.USES_ACCESSORS) {
+ callback(aget, aset);
+ } else {
+ ok('SKIPPING ACCESSORS')... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/run_loop/sync_test.js | @@ -10,7 +10,9 @@ test('sync() will immediately flush the sync queue only', function() {
function cntup() { cnt++; }
function syncfunc() {
- if (++cnt<5) run.schedule('sync', syncfunc);
+ if (++cnt<5) {
+ run.schedule('sync', syncfunc);
+ }
run.schedule('actions', cntup);
}... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/watching/unwatch_test.js | @@ -29,7 +29,10 @@ testBoth('unwatching a computed property - regular get/set', function(get, set)
var obj = {};
defineProperty(obj, 'foo', computed(function(keyName, value) {
- if (value !== undefined) this.__foo = value;
+ if (value !== undefined) {
+ this.__foo = value;
+ }
+
return this._... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-metal/tests/watching/watch_test.js | @@ -41,7 +41,10 @@ function addListeners(obj, keyPath) {
testBoth('watching a computed property', function(get, set) {
var obj = {};
Ember.defineProperty(obj, 'foo', Ember.computed(function(keyName, value) {
- if (value !== undefined) this.__foo = value;
+ if (value !== undefined) {
+ this.__foo = val... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-routing-views/lib/views/link.js | @@ -20,8 +20,9 @@ var numberOfContextsAcceptedByHandler = function(handler, handlerInfos) {
var req = 0;
for (var i = 0, l = handlerInfos.length; i < l; i++) {
req = req + handlerInfos[i].names.length;
- if (handlerInfos[i].handler === handler)
+ if (handlerInfos[i].handler === handler) {
break;... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-routing/lib/ext/view.js | @@ -138,7 +138,10 @@ EmberView.reopen({
@method _finishDisconnections
*/
_finishDisconnections: function() {
- if (this.isDestroyed) return; // _outlets will be gone anyway
+ if (this.isDestroyed) {
+ return; // _outlets will be gone anyway
+ }
+
var outlets = get(this, '_outlets');
... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/lib/mixins/freezable.js | @@ -82,7 +82,10 @@ export var Freezable = Mixin.create({
@return {Object} receiver
*/
freeze: function() {
- if (get(this, 'isFrozen')) return this;
+ if (get(this, 'isFrozen')) {
+ return this;
+ }
+
set(this, 'isFrozen', true);
return this;
} | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/lib/mixins/mutable_array.js | @@ -83,7 +83,10 @@ export default Mixin.create(EmberArray, MutableEnumerable, {
*/
clear: function () {
var len = get(this, 'length');
- if (len === 0) return this;
+ if (len === 0) {
+ return this;
+ }
+
this.replace(0, len, EMPTY);
return this;
},
@@ -104,7 +107,10 @@ export defa... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/lib/mixins/target_action_support.js | @@ -33,7 +33,10 @@ var TargetActionSupport = Mixin.create({
if (typeOf(target) === "string") {
var value = get(this, target);
- if (value === undefined) { value = get(Ember.lookup, target); }
+ if (value === undefined) {
+ value = get(Ember.lookup, target);
+ }
+
return value;... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/lib/system/array_proxy.js | @@ -261,7 +261,10 @@ var ArrayProxy = EmberObject.extend(MutableArray, {
_replace: function(idx, amt, objects) {
var content = get(this, 'content');
Ember.assert('The content property of '+ this.constructor + ' should be set before modifying it', content);
- if (content) this.replaceContent(idx, amt, ob... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/lib/system/each_proxy.js | @@ -55,7 +55,9 @@ var IS_OBSERVER = /^.+:(before|change)$/;
function addObserverForContentKey(content, keyName, proxy, idx, loc) {
var objects = proxy._objects;
var guid;
- if (!objects) objects = proxy._objects = {};
+ if (!objects) {
+ objects = proxy._objects = {};
+ }
while(--loc>=idx) {
var ... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/lib/system/native_array.js | @@ -41,9 +41,13 @@ var NativeArray = Mixin.create(MutableArray, Observable, Copyable, {
// because length is a built-in property we need to know to just get the
// original property.
get: function(key) {
- if (key==='length') return this.length;
- else if ('number' === typeof key) return this[key];
- ... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/lib/system/set.js | @@ -197,13 +197,19 @@ export default CoreObject.extend(MutableEnumerable, Copyable, Freezable, {
*/
isEqual: function(obj) {
// fail fast
- if (!Enumerable.detect(obj)) return false;
+ if (!Enumerable.detect(obj)) {
+ return false;
+ }
var loc = get(this, 'length');
- if (get(obj, 'le... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/legacy_1x/mixins/observable/observable_test.js | @@ -372,12 +372,17 @@ QUnit.module("Computed properties", {
// two computed properties that depend on a third property
state: 'on',
isOn: computed(function(key, value) {
- if (value !== undefined) this.set('state', 'on');
+ if (value !== undefined) {
+ this.set('state', 'on')... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/mixins/copyable_test.js | @@ -30,7 +30,10 @@ CopyableTests.extend({
},
isEqual: function(a, b) {
- if (!(a instanceof CopyableObject) || !(b instanceof CopyableObject)) return false;
+ if (!(a instanceof CopyableObject) || !(b instanceof CopyableObject)) {
+ return false;
+ }
+
return get(a, 'id') === get(b,'id');
... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/mixins/enumerable_test.js | @@ -25,7 +25,10 @@ var TestEnumerable = EmberObject.extend(Enumerable, {
},
addObject: function(obj) {
- if (indexOf(this._content, obj)>=0) return this;
+ if (indexOf(this._content, obj)>=0) {
+ return this;
+ }
+
this._content.push(obj);
this.enumerableContentDidChange();
}, | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/mixins/mutable_enumerable_test.js | @@ -14,15 +14,20 @@ var TestMutableEnumerable = EmberObject.extend(MutableEnumerable, {
_content: null,
addObject: function(obj) {
- if (indexOf(this._content, obj)>=0) return this;
+ if (indexOf(this._content, obj)>=0) {
+ return this;
+ }
+
this.enumerableContentWillChange(null, [obj]);
... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/suites/enumerable.js | @@ -55,7 +55,10 @@ var ObserverClass = EmberObject.extend({
observeBefore: function(obj) {
var keys = Array.prototype.slice.call(arguments, 1);
var loc = keys.length;
- while(--loc>=0) addBeforeObserver(obj, keys[loc], this, 'propertyWillChange');
+ while(--loc>=0) {
+ addBeforeObserver(obj, ke... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/suites/suite.js | @@ -64,7 +64,10 @@ Suite.reopenClass({
},
module: function(desc, opts) {
- if (!opts) opts = {};
+ if (!opts) {
+ opts = {};
+ }
+
var setup = opts.setup;
var teardown = opts.teardown;
this.reopen({
@@ -74,11 +77,15 @@ Suite.reopenClass({
var ctx = this;
QUnit.modu... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/system/native_array/copyable_suite_test.js | @@ -9,9 +9,18 @@ CopyableTests.extend({
},
isEqual: function(a,b) {
- if (!(a instanceof Array)) return false;
- if (!(b instanceof Array)) return false;
- if (a.length !== b.length) return false;
+ if (!(a instanceof Array)) {
+ return false;
+ }
+
+ if (!(b instanceof Array)) {
+ r... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-runtime/tests/system/set/copyable_suite_test.js | @@ -29,8 +29,14 @@ CopyableTests.extend({
},
isEqual: function(a,b) {
- if (!(a instanceof Set)) return false;
- if (!(b instanceof Set)) return false;
+ if (!(a instanceof Set)) {
+ return false;
+ }
+
+ if (!(b instanceof Set)) {
+ return false;
+ }
+
return get(a, 'firstObjec... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-views/lib/views/states/default.js | @@ -26,8 +26,10 @@ export default {
},
destroyElement: function(view) {
- if (view._renderer)
+ if (view._renderer) {
view._renderer.remove(view, false);
+ }
+
return view;
},
| true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-views/lib/views/states/has_element.js | @@ -35,7 +35,10 @@ merge(hasElement, {
}
// TODO: should be scheduled with renderer
run.scheduleOnce('render', function () {
- if (view.isDestroying) return;
+ if (view.isDestroying) {
+ return;
+ }
+
view._renderer.renderTree(view, view._parentView);
});
}, | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-views/lib/views/states/in_dom.js | @@ -35,7 +35,9 @@ merge(inDOM, {
exit: function(view) {
if (!View) { View = requireModule('ember-views/views/view')["default"]; } // ES6TODO: this sucks. Have to avoid cycles...
- if (!this.isVirtual) delete View.views[view.elementId];
+ if (!this.isVirtual) {
+ delete View.views[view.elementId];
+... | true |
Other | emberjs | ember.js | 374ff0a33709fd284c3f988cc4c32b0dcddde6b8.json | Require curly brackets. | packages/ember-views/lib/views/view.js | @@ -1067,7 +1067,10 @@ var View = CoreView.extend({
keywords.view.setSource(this.isVirtual ? parentKeywords.view : this);
for (var name in parentKeywords) {
- if (keywords[name]) continue;
+ if (keywords[name]) {
+ continue;
+ }
+
keywords[name] = parentKeywords[na... | true |
Other | emberjs | ember.js | b27712aac7b58061bb00792002054ad2d533b974.json | Exclude files with invalid ES6 syntax. | .jscsrc | @@ -1,5 +1,6 @@
{
"esnext": true,
+ "excludeFiles": ["ember-runtime/ext/rsvp.js"],
"additionalRules": [ "lib/jscs-rules/*.js" ],
"disallowMultipleVarDeclWithAssignment": true
} | false |
Other | emberjs | ember.js | 09fe6652b4a180f552e952b43ade3bdb94a73cea.json | Use jscs for style checking. | .jscsrc | @@ -0,0 +1,5 @@
+{
+ "esnext": true,
+ "additionalRules": [ "lib/jscs-rules/*.js" ],
+ "disallowMultipleVarDeclWithAssignment": true
+} | true |
Other | emberjs | ember.js | 09fe6652b4a180f552e952b43ade3bdb94a73cea.json | Use jscs for style checking. | lib/jscs-rules/disallow-multiple-var-decl-with-assignment.js | @@ -0,0 +1,39 @@
+var assert = require('assert');
+
+module.exports = function() {};
+
+module.exports.prototype = {
+ configure: function(disallowMultipleVarDeclWithAssignment) {
+ assert(
+ typeof disallowMultipleVarDeclWithAssignment === 'boolean',
+ 'disallowMultipleVarDeclWithAssignment option requir... | true |
Other | emberjs | ember.js | 013b99b61bd693b98d22b3dd2c9102a9d423c451.json | Remove lines with only spaces. | packages/container/lib/container.js | @@ -25,7 +25,7 @@ function Container(registry, options) {
// TODO - See note above about transpiler import workaround.
if (!Registry) { Registry = requireModule('container/registry')['default']; }
-
+
return new Registry();
}());
| true |
Other | emberjs | ember.js | 013b99b61bd693b98d22b3dd2c9102a9d423c451.json | Remove lines with only spaces. | packages/ember-debug/lib/main.js | @@ -188,7 +188,7 @@ Ember.runInDebug = function(func) {
any specific FEATURES flag is truthy.
This method is called automatically in debug canary builds.
-
+
@private
@method _warnIfUsingStrippedFeatureFlags
@return {void}
@@ -210,7 +210,7 @@ if (!Ember.testing) {
// Complain if they're using FEAT... | true |
Other | emberjs | ember.js | 013b99b61bd693b98d22b3dd2c9102a9d423c451.json | Remove lines with only spaces. | packages/ember-routing/lib/location/hash_location.js | @@ -52,7 +52,7 @@ export default EmberObject.extend({
getURL: function() {
var originalPath = this.getHash().substr(1);
var outPath = originalPath;
-
+
if (outPath.charAt(0) !== '/') {
outPath = '/';
| true |
Other | emberjs | ember.js | 013b99b61bd693b98d22b3dd2c9102a9d423c451.json | Remove lines with only spaces. | packages/ember-routing/tests/location/hash_location_test.js | @@ -90,7 +90,7 @@ test("HashLocation.getURL() returns a normal forward slash when there is no loca
createLocation({
_location: mockBrowserLocation('/')
});
-
+
equal(location.getURL(), '/');
});
@@ -183,4 +183,4 @@ test("HashLocation.willDestroy() cleans up hashchange event listener", funct... | true |
Other | emberjs | ember.js | 013b99b61bd693b98d22b3dd2c9102a9d423c451.json | Remove lines with only spaces. | packages/ember-runtime/lib/mixins/enumerable.js | @@ -221,7 +221,7 @@ export default Mixin.create({
var found = this.find(function(item) {
return item === obj;
});
-
+
return found !== undefined;
},
| true |
Other | emberjs | ember.js | 013b99b61bd693b98d22b3dd2c9102a9d423c451.json | Remove lines with only spaces. | packages/ember-views/tests/views/view/stream_test.js | @@ -61,7 +61,7 @@ test("the stream returned is labeled with the requested path", function() {
controller: {
name: 'Robert'
},
-
+
foo: 'bar'
});
| true |
Other | emberjs | ember.js | 468fe7bd286048b59b900347a4f741ba4da0cb39.json | Remove code duplication in view helper | packages/ember-htmlbars/lib/helpers/view.js | @@ -123,73 +123,38 @@ export var ViewHelper = EmberObject.create({
return extensions;
},
- helper: function(newView, hash, options, env) {
- var data = env.data;
- var template = options.template;
- var newViewProto;
+ helper: function(viewInstanceOrClass, hash, options, env) {
+ var currentView... | true |
Other | emberjs | ember.js | 468fe7bd286048b59b900347a4f741ba4da0cb39.json | Remove code duplication in view helper | packages/ember-routing-htmlbars/lib/helpers/render.js | @@ -169,5 +169,5 @@ export function renderHelper(params, hash, options, env) {
options.helperName = options.helperName || ('render "' + name + '"');
- ViewHelper.instanceHelper(view, hash, options, env);
+ ViewHelper.helper(view, hash, options, env);
} | true |
Other | emberjs | ember.js | e6f4f4910629334eb4bd5a44f3852e602e20770a.json | Fix quotes in example code | packages/ember-routing/lib/system/route.js | @@ -995,7 +995,7 @@ var Route = EmberObject.extend(ActionHandler, Evented, {
```javascript
App.Router.map(function() {
- this.route("index");
+ this.route('index');
});
App.ApplicationRoute = Ember.Route.extend({ | false |
Other | emberjs | ember.js | 95b2f2b969a0958c3cd6f51ca1d5c8a84639737e.json | Use Node 0.11. | .travis.yml | @@ -1,5 +1,7 @@
---
language: node_js
+node_js:
+ - "0.11"
sudo: false
| false |
Other | emberjs | ember.js | c24b7910d661492734e92d4e4aab22a2fd608e16.json | Fix YUIDoc generation.
The builds were not publishing to S3 because `ember yuidoc` command did
not exist after refactoring the Brocfile into its own repo. This brings
back the addon (and therefore the command) so that we can properly
generate the data.json output. | .travis.yml | @@ -9,7 +9,6 @@ cache:
install:
- "npm install"
- - "npm run docs"
after_success:
- "./bin/publish_builds" | true |
Other | emberjs | ember.js | c24b7910d661492734e92d4e4aab22a2fd608e16.json | Fix YUIDoc generation.
The builds were not publishing to S3 because `ember yuidoc` command did
not exist after refactoring the Brocfile into its own repo. This brings
back the addon (and therefore the command) so that we can properly
generate the data.json output. | bin/publish_builds | @@ -9,6 +9,7 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
ember build --environment=production
fi
+ npm run docs # generate documentation to be published
./bin/publish_to_s3.js
./bin/bower_ember_build
fi | true |
Other | emberjs | ember.js | c24b7910d661492734e92d4e4aab22a2fd608e16.json | Fix YUIDoc generation.
The builds were not publishing to S3 because `ember yuidoc` command did
not exist after refactoring the Brocfile into its own repo. This brings
back the addon (and therefore the command) so that we can properly
generate the data.json output. | package.json | @@ -15,13 +15,14 @@
"bower": "~1.3.2",
"chalk": "~0.4.0",
"ember-cli": "0.0.46",
+ "ember-cli-yuidoc": "^0.3.1",
"ember-publisher": "0.0.6",
+ "emberjs-build": "0.0.4",
"express": "^4.5.0",
"glob": "~3.2.8",
"htmlbars": "0.5.0",
- "rsvp": "~3.0.6",
"qunit-extras": "^1.3.... | true |
Other | emberjs | ember.js | e34dd12f1921cba438c2f5d16cc249f1f832b612.json | Remove bind helper | packages/ember-htmlbars/lib/helpers/binding.js | @@ -1,115 +0,0 @@
-/**
-@module ember
-@submodule ember-htmlbars
-*/
-
-import isNone from 'ember-metal/is_none';
-import run from "ember-metal/run_loop";
-import { get } from "ember-metal/property_get";
-import SimpleStream from "ember-metal/streams/simple";
-import BoundView from "ember-views/views/bound_view";
-impo... | true |
Other | emberjs | ember.js | e34dd12f1921cba438c2f5d16cc249f1f832b612.json | Remove bind helper | packages/ember-htmlbars/lib/main.js | @@ -18,7 +18,6 @@ import {
helper,
default as helpers
} from "ember-htmlbars/helpers";
-import { bindHelper } from "ember-htmlbars/helpers/binding";
import { viewHelper } from "ember-htmlbars/helpers/view";
import { yieldHelper } from "ember-htmlbars/helpers/yield";
import { withHelper } from "ember-htmlbars/... | true |
Other | emberjs | ember.js | e34dd12f1921cba438c2f5d16cc249f1f832b612.json | Remove bind helper | packages/ember-htmlbars/tests/helpers/bind_test.js | @@ -1,286 +0,0 @@
-import EmberView from "ember-views/views/view";
-import EmberObject from "ember-runtime/system/object";
-import run from "ember-metal/run_loop";
-import _MetamorphView from 'ember-views/views/metamorph_view';
-import compile from "ember-htmlbars/system/compile";
-import { Registry } from "ember-runti... | true |
Other | emberjs | ember.js | e34dd12f1921cba438c2f5d16cc249f1f832b612.json | Remove bind helper | packages/ember-views/lib/main.js | @@ -36,7 +36,6 @@ import TextSupport from "ember-views/mixins/text_support";
import TextField from "ember-views/views/text_field";
import TextArea from "ember-views/views/text_area";
-import BoundView from "ember-views/views/bound_view";
import SimpleBoundView from "ember-views/views/simple_bound_view";
import _M... | true |
Other | emberjs | ember.js | e34dd12f1921cba438c2f5d16cc249f1f832b612.json | Remove bind helper | packages/ember-views/lib/views/bound_view.js | @@ -1,153 +0,0 @@
-/**
-@module ember
-@submodule ember-views
-*/
-
-import { get } from "ember-metal/property_get";
-import { set } from "ember-metal/property_set";
-import _MetamorphView from "ember-views/views/metamorph_view";
-import NormalizedRerenderIfNeededSupport from "ember-views/mixins/normalized_rerender_if_... | true |
Other | emberjs | ember.js | 310cec8dcf5ce3bc124817fbe10345882a11b759.json | Improve arguments check in Container#reset
As per @stefanpenner’s concerns, checking `arguments.length` is more
strict and can prevent a reset of the entire cache if `fullName` is
mistakenly set to a falsey value.
Also, adds docs for `reset`. | packages/container/lib/container.js | @@ -133,10 +133,13 @@ Container.prototype = {
},
/**
+ Clear either the entire cache or just the cache for a particular key.
+
@method reset
+ @param {String} fullName optional key to reset; if missing, resets everything
*/
reset: function(fullName) {
- if (fullName) {
+ if (arguments.lengt... | false |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/container/lib/container.js | @@ -65,7 +65,7 @@ Container.prototype = {
```javascript
var registry = new Registry();
- var container = new Container(registry);
+ var container = registry.container();
registry.register('api:twitter', Twitter);
@@ -84,7 +84,7 @@ Container.prototype = {
```javascript
var registry = new ... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/container/lib/registry.js | @@ -1,5 +1,6 @@
import Ember from 'ember-metal/core'; // Ember.assert
import dictionary from 'ember-metal/dictionary';
+import Container from 'container/container';
var VALID_FULL_NAME_REGEXP = /^[^:]+.+:[^:]+$/;
@@ -103,6 +104,16 @@ Registry.prototype = {
*/
_typeOptions: null,
+ /**
+ Creates a con... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/container/tests/container_test.js | @@ -2,7 +2,6 @@ import {
factory
} from 'container/tests/container_helper';
-import Container from 'container/container';
import Registry from 'container/registry';
var originalModelInjections;
@@ -18,7 +17,7 @@ QUnit.module("Container", {
test("A registered factory returns the same instance each time", fu... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-application/lib/system/application.js | @@ -4,7 +4,6 @@
*/
import DAG from 'dag-map';
import Registry from 'container/registry';
-import Container from 'container/container';
import Ember from "ember-metal"; // Ember.FEATURES, Ember.deprecate, Ember.assert, Ember.libraries, LOG_VERSION, Namespace, BOOTED
import { get } from "ember-metal/property_get";... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-application/tests/system/controller_test.js | @@ -3,7 +3,7 @@
import Controller from "ember-runtime/controllers/controller";
import "ember-application/ext/controller";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import { A } from "ember-runtime/system/native_array";
import... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/compat/handlebars_get_test.js | @@ -2,7 +2,7 @@ import Ember from "ember-metal/core"; // Ember.lookup
import _MetamorphView from "ember-views/views/metamorph_view";
import EmberView from "ember-views/views/view";
import handlebarsGet from "ember-htmlbars/compat/handlebars-get";
-import { Registry, Container } from "ember-runtime/system/container";... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/compat/make-view-helper_test.js | @@ -1,6 +1,5 @@
import EmberView from "ember-views/views/view";
import Registry from "container/registry";
-import Container from "container/container";
import compile from "ember-htmlbars/system/compile";
import makeViewHelper from "ember-htmlbars/system/make-view-helper";
import Component from "ember-views/views... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/bind_attr_test.js | @@ -8,7 +8,7 @@ import EmberObject from "ember-runtime/system/object";
import { A } from "ember-runtime/system/native_array";
import { computed } from "ember-metal/computed";
import { observersFor } from "ember-metal/observer";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/bind_test.js | @@ -3,7 +3,7 @@ import EmberObject from "ember-runtime/system/object";
import run from "ember-metal/run_loop";
import _MetamorphView from 'ember-views/views/metamorph_view';
import compile from "ember-htmlbars/system/compile";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry ... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/collection_test.js | @@ -4,7 +4,7 @@ import EmberObject from "ember-runtime/system/object";
import EmberView from "ember-views/views/view";
import ArrayProxy from "ember-runtime/system/array_proxy";
import Namespace from "ember-runtime/system/namespace";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Re... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/each_test.js | @@ -9,7 +9,7 @@ import ArrayController from "ember-runtime/controllers/array_controller";
import { A } from "ember-runtime/system/native_array";
import { default as EmberController } from "ember-runtime/controllers/controller";
import ObjectController from "ember-runtime/controllers/object_controller";
-import { Reg... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/if_unless_test.js | @@ -1,6 +1,6 @@
import run from "ember-metal/run_loop";
import Namespace from 'ember-runtime/system/namespace';
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import EmberView from "ember-views/views/view";
import ObjectProxy from "... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/partial_test.js | @@ -3,7 +3,7 @@ import run from "ember-metal/run_loop";
import EmberView from "ember-views/views/view";
import jQuery from "ember-views/system/jquery";
var trim = jQuery.trim;
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import co... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/template_test.js | @@ -3,7 +3,7 @@ import EmberObject from "ember-runtime/system/object";
import jQuery from "ember-views/system/jquery";
var trim = jQuery.trim;
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import compile from "ember-htmlbars/syste... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/unbound_test.js | @@ -13,7 +13,7 @@ import helpers from "ember-htmlbars/helpers";
import registerBoundHelper from "ember-htmlbars/compat/register-bound-helper";
import makeBoundHelper from "ember-htmlbars/compat/make-bound-helper";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "embe... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/view_test.js | @@ -2,7 +2,6 @@
import { set } from "ember-metal/property_set";
import EmberView from "ember-views/views/view";
import Registry from "container/registry";
-import Container from "container/container";
import run from "ember-metal/run_loop";
import jQuery from "ember-views/system/jquery";
import TextField from 'em... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/with_test.js | @@ -6,7 +6,7 @@ import { computed } from "ember-metal/computed";
import { set } from "ember-metal/property_set";
import { get } from "ember-metal/property_get";
import ObjectController from "ember-runtime/controllers/object_controller";
-import { Registry, Container } from "ember-runtime/system/container";
+import {... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/helpers/yield_test.js | @@ -2,7 +2,7 @@
import run from "ember-metal/run_loop";
import EmberView from "ember-views/views/view";
import { computed } from "ember-metal/computed";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import { get } from "ember-metal... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/hooks/component_test.js | @@ -1,6 +1,5 @@
import ComponentLookup from "ember-views/component_lookup";
import Registry from "container/registry";
-import Container from "container/container";
import EmberView from "ember-views/views/view";
import compile from "ember-htmlbars/system/compile";
import { runAppend, runDestroy } from "ember-runt... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/integration/block_params_test.js | @@ -1,5 +1,4 @@
import Registry from "container/registry";
-import Container from "container/container";
import run from "ember-metal/run_loop";
import ComponentLookup from 'ember-views/component_lookup';
import View from "ember-views/views/view";
@@ -26,7 +25,7 @@ QUnit.module("ember-htmlbars: block params", {
... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/integration/component_invocation_test.js | @@ -1,6 +1,5 @@
import EmberView from "ember-views/views/view";
import Registry from "container/registry";
-import Container from "container/container";
import jQuery from "ember-views/system/jquery";
import compile from "ember-htmlbars/system/compile";
import ComponentLookup from 'ember-views/component_lookup';
@... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/integration/with_view_test.js | @@ -1,7 +1,7 @@
import run from 'ember-metal/run_loop';
import jQuery from 'ember-views/system/jquery';
import EmberView from 'ember-views/views/view';
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import EmberObject from 'ember-ru... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/system/lookup-helper_test.js | @@ -1,7 +1,6 @@
import lookupHelper from "ember-htmlbars/system/lookup-helper";
import ComponentLookup from "ember-views/component_lookup";
import Registry from "container/registry";
-import Container from "container/container";
import Component from "ember-views/views/component";
function generateEnv(helpers) {... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-htmlbars/tests/system/make_bound_helper_test.js | @@ -1,7 +1,6 @@
import EmberView from "ember-views/views/view";
import run from "ember-metal/run_loop";
import Registry from "container/registry";
-import Container from "container/container";
import makeBoundHelper from "ember-htmlbars/system/make_bound_helper";
import compile from "ember-htmlbars/system/compile"... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-routing-htmlbars/tests/helpers/action_test.js | @@ -4,7 +4,7 @@ import run from "ember-metal/run_loop";
import EventDispatcher from "ember-views/system/event_dispatcher";
import ActionManager from "ember-views/system/action_manager";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-routing-htmlbars/tests/helpers/outlet_test.js | @@ -4,7 +4,6 @@ import { set } from "ember-metal/property_set";
import run from "ember-metal/run_loop";
import Registry from "container/registry";
-import Container from "container/container";
import Namespace from "ember-runtime/system/namespace";
import {
decamelize,
@@ -51,7 +50,7 @@ var buildRegistry = fun... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-routing-htmlbars/tests/helpers/render_test.js | @@ -6,7 +6,6 @@ import { canDefineNonEnumerableProperties } from 'ember-metal/platform';
import { observer } from 'ember-metal/mixin';
import Registry from 'container/registry';
-import Container from 'container/container';
import Namespace from "ember-runtime/system/namespace";
import {
classify,
@@ -43,7 +42... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-routing/tests/system/controller_for_test.js | @@ -4,7 +4,6 @@ import { set } from "ember-metal/property_set";
import run from "ember-metal/run_loop";
import Registry from 'container/registry';
-import Container from 'container/container';
import Namespace from "ember-runtime/system/namespace";
import { classify } from "ember-runtime/system/string";
import C... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-routing/tests/system/route_test.js | @@ -1,6 +1,5 @@
import run from "ember-metal/run_loop";
import Registry from "container/registry";
-import Container from "container/container";
import Service from "ember-runtime/system/service";
import EmberObject from "ember-runtime/system/object";
import EmberRoute from "ember-routing/system/route";
@@ -59,7 +... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-routing/tests/system/router_test.js | @@ -3,7 +3,6 @@ import copy from "ember-runtime/copy";
import merge from "ember-metal/merge";
import { map } from "ember-metal/enumerable_utils";
import Registry from "container/registry";
-import Container from "container/container";
import HashLocation from "ember-routing/location/hash_location";
import AutoLoca... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-runtime/tests/controllers/controller_test.js | @@ -5,7 +5,7 @@ import Service from "ember-runtime/system/service";
import ObjectController from "ember-runtime/controllers/object_controller";
import Mixin from "ember-metal/mixin";
import Object from "ember-runtime/system/object";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Reg... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-runtime/tests/controllers/item_controller_class_test.js | @@ -9,15 +9,14 @@ import ArrayController from "ember-runtime/controllers/array_controller";
import ObjectController from "ember-runtime/controllers/object_controller";
import {sort} from "ember-runtime/computed/reduce_computed_macros";
import Registry from "container/registry";
-import Container from "container/cont... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-runtime/tests/inject_test.js | @@ -5,7 +5,7 @@ import {
createInjectionHelper,
default as inject
} from "ember-runtime/inject";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import Object from "ember-runtime/system/object";
if (Ember.FEATURES.isEnabled('e... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-views/tests/views/component_test.js | @@ -2,7 +2,7 @@ import { set } from "ember-metal/property_set";
import run from "ember-metal/run_loop";
import EmberObject from "ember-runtime/system/object";
import Service from "ember-runtime/system/service";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-ru... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-views/tests/views/view/inject_test.js | @@ -1,5 +1,5 @@
import Service from "ember-runtime/system/service";
-import { Registry, Container } from "ember-runtime/system/container";
+import { Registry } from "ember-runtime/system/container";
import inject from "ember-runtime/inject";
import View from "ember-views/views/view";
@@ -8,7 +8,7 @@ if (Ember.FEAT... | true |
Other | emberjs | ember.js | 2bde50dc4252dffeba0ff34eef1ae0368cbf18b3.json | Introduce Registry#container method
This is the preferred method for constructing a Container based on its
associated Registry. | packages/ember-views/tests/views/view/layout_test.js | @@ -1,5 +1,4 @@
import Registry from "container/registry";
-import Container from "container/container";
import { get } from "ember-metal/property_get";
import run from "ember-metal/run_loop";
import EmberView from "ember-views/views/view";
@@ -9,7 +8,7 @@ var registry, container, view;
QUnit.module("EmberView - L... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.