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 | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/lib/controls/select.js | @@ -536,9 +536,9 @@ Ember.Select = Ember.View.extend(
content = get(this, 'content'),
selection = get(this, 'selection');
- if (!content){ return; }
+ if (!content) { return; }
if (options) {
- var selectedIndexes = options.map(function(){
+ var selectedIndexes = options.map(fun... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/lib/ext.js | @@ -132,7 +132,7 @@ Ember.Handlebars.registerHelper('helperMissing', function(path, options) {
var error, view = "";
error = "%@ Handlebars error: Could not find property '%@' on object %@.";
- if (options.data){
+ if (options.data) {
view = options.data.view;
}
throw new Ember.Error(Ember.String.f... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/lib/helpers/binding.js | @@ -13,7 +13,7 @@ var forEach = Ember.ArrayPolyfills.forEach;
var EmberHandlebars = Ember.Handlebars, helpers = EmberHandlebars.helpers;
-function exists(value){
+function exists(value) {
return !Ember.isNone(value);
}
@@ -363,7 +363,7 @@ EmberHandlebars.registerHelper('unless', function(context, options) {
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/lib/helpers/collection.js | @@ -185,7 +185,7 @@ Ember.Handlebars.registerHelper('collection', function(path, options) {
if (hash.hasOwnProperty(prop)) {
match = prop.match(/^item(.)(.*)$/);
- if(match && prop !== 'itemController') {
+ if (match && prop !== 'itemController') {
// Convert itemShouldFoo -> shouldFoo
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/lib/helpers/each.js | @@ -288,7 +288,7 @@ GroupedEach.prototype = {
```javascript
App.DeveloperController = Ember.ObjectController.extend({
- isAvailableForHire: function(){
+ isAvailableForHire: function() {
return !this.get('content.isEmployed') && this.get('content.isSeekingWork');
}.property('isEmployed', 'isSe... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/lib/helpers/unbound.js | @@ -32,7 +32,7 @@ var handlebarsGet = Ember.Handlebars.get;
Ember.Handlebars.registerHelper('unbound', function(property, fn) {
var options = arguments[arguments.length - 1], helper, context, out;
- if(arguments.length > 2) {
+ if (arguments.length > 2) {
// Unbound helper call.
options.data.isUnbound... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/controls/select_test.js | @@ -231,7 +231,7 @@ test("multiple selections can be set when multiple=true", function() {
Ember.run(function() { select.set('selection', Ember.A([tom, brennain])); });
deepEqual(
- select.$(':selected').map(function(){ return trim(Ember.$(this).text());}).toArray(),
+ select.$(':selected').map(function()... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/handlebars_test.js | @@ -713,7 +713,7 @@ test("edge case: child conditional should not render children if parent conditio
test("Template views return throw if their template cannot be found", function() {
view = Ember.View.create({
templateName: 'cantBeFound',
- container: { lookup: function(){ }}
+ container: { lookup: func... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/bound_helper_test.js | @@ -12,7 +12,7 @@ var registerRepeatHelper = function() {
Ember.Handlebars.helper('repeat', function(value, options) {
var count = options.hash.count;
var a = [];
- while(a.length < count){
+ while(a.length < count) {
a.push(value);
}
return a.join('');
@@ -24,7 +24,7 @@ module("Ha... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/custom_view_helper_test.js | @@ -11,7 +11,7 @@ module("Handlebars custom view helpers", {
window.TemplateTests = Ember.Namespace.create();
},
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
if (view) {
view.destroy();
} | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/each_test.js | @@ -29,7 +29,7 @@ module("the #each helper", {
},
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
view.destroy();
view = null;
}); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/if_unless_test.js | @@ -8,7 +8,7 @@ var view;
module("Handlebars {{#if}} and {{#unless}} helpers", {
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
if (view) {
view.destroy();
} | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/loc_test.js | @@ -12,7 +12,7 @@ var appendView = function(view) {
};
var destroyView = function(view) {
- Ember.run(function(){
+ Ember.run(function() {
view.destroy();
});
}; | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/partial_test.js | @@ -2,13 +2,13 @@ var MyApp;
var originalLookup = Ember.lookup, lookup, TemplateTests, view, container;
module("Support for {{partial}} helper", {
- setup: function(){
+ setup: function() {
Ember.lookup = lookup = { Ember: Ember };
MyApp = lookup.MyApp = Ember.Object.create({});
container = new Emb... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/template_test.js | @@ -2,13 +2,13 @@ var MyApp;
var originalLookup = Ember.lookup, lookup, TemplateTests, view, container;
module("Support for {{template}} helper", {
- setup: function(){
+ setup: function() {
Ember.lookup = lookup = { Ember: Ember };
MyApp = lookup.MyApp = Ember.Object.create({});
container = new Em... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/unbound_test.js | @@ -25,7 +25,7 @@ module("Handlebars {{#unbound}} helper -- classic single-property usage", {
},
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
view.destroy();
});
Ember.lookup = originalLookup;
@@ -66,7 +66,7 @@ module("Handlebars {{#unbound boundHelper arg1 arg2... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/view_test.js | @@ -1,10 +1,10 @@
var view, originalLookup;
var container = {
- lookupFactory: function(){ }
+ lookupFactory: function() { }
};
-function viewClass(options){
+function viewClass(options) {
options.container = options.container || container;
return Ember.View.extend(options);
}
@@ -22,7 +22,7 @@ module("... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/with_test.js | @@ -23,7 +23,7 @@ module("Handlebars {{#with}} helper", {
},
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
view.destroy();
});
Ember.lookup = originalLookup;
@@ -73,7 +73,7 @@ module("Handlebars {{#with}} globals helper", {
},
teardown: function() {
- ... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/helpers/yield_test.js | @@ -12,7 +12,7 @@ module("Support for {{yield}} helper (#307)", {
container.optionsForType('template', { instantiate: false });
},
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
if (view) {
view.destroy();
}} | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/views/collection_view_test.js | @@ -17,7 +17,7 @@ module("ember-handlebars/tests/views/collection_view_test", {
lookup.TemplateTests = TemplateTests = Ember.Namespace.create();
},
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
if (view) {
view.destroy();
}
@@ -102,7 +102,7 @@ test("empt... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-handlebars/tests/views/metamorph_view_test.js | @@ -11,7 +11,7 @@ module("Metamorph views", {
},
teardown: function() {
- Ember.run(function(){
+ Ember.run(function() {
view.destroy();
if (childView && !childView.isDestroyed) {
childView.destroy();
@@ -75,7 +75,7 @@ module("Metamorph views correctly handle DOM", {
},
tear... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/computed.js | @@ -402,7 +402,7 @@ Ember.computed = function(func) {
func = a_slice.call(arguments, -1)[0];
}
- if ( typeof func !== "function" ) {
+ if (typeof func !== "function") {
throw new Error("Computed Property declared without a property function");
}
@@ -670,7 +670,7 @@ registerComputedWithProperties('... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/core.js | @@ -176,7 +176,7 @@ function assertPolyfill(test, message) {
// attempt to preserve the stack
throw new Error("assertion failed: " + message);
} catch(error) {
- setTimeout(function(){
+ setTimeout(function() {
throw error;
}, 0);
}
@@ -258,7 +258,7 @@ Ember.merge = fun... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/instrumentation.js | @@ -92,7 +92,7 @@ Ember.Instrumentation.instrument = function(name, payload, callback, binding) {
var beforeValues = [], listener, i, l;
- function tryable(){
+ function tryable() {
for (i=0, l=listeners.length; i<l; i++) {
listener = listeners[i];
beforeValues[i] = listener.before(name, tim... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/mixin.js | @@ -575,7 +575,7 @@ Alias.prototype = new Ember.Descriptor();
App.PaintSample = Ember.Object.extend({
color: 'red',
colour: Ember.alias('color'),
- name: function(){
+ name: function() {
return "Zed";
},
moniker: Ember.alias("name")
@@ -603,7 +603,7 @@ Ember.alias = Ember.deprecateFu... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/platform.js | @@ -60,7 +60,7 @@ var canRedefineProperties, canDefinePropertyOnDOM;
// Catch IE8 where Object.defineProperty exists but only works on DOM elements
if (defineProperty) {
try {
- defineProperty({}, 'a',{get:function(){}});
+ defineProperty({}, 'a',{get:function() {}});
} catch (e) {
defineProperty = n... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/property_events.js | @@ -182,7 +182,7 @@ var endPropertyChanges = Ember.endPropertyChanges = function() {
@param {Function} callback
@param [binding]
*/
-Ember.changeProperties = function(cb, binding){
+Ember.changeProperties = function(cb, binding) {
beginPropertyChanges();
tryFinally(cb, endPropertyChanges, binding);
};
@@ ... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/run_loop.js | @@ -35,7 +35,7 @@ var Backburner = requireModule('backburner').Backburner,
call.
```javascript
- Ember.run(function(){
+ Ember.run(function() {
// code to be execute within a RunLoop
});
```
@@ -78,17 +78,17 @@ Ember.run = function(target, method) {
If invoked when not within a run loop:
``... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/set_properties.js | @@ -15,10 +15,10 @@ var changeProperties = Ember.changeProperties,
@return self
*/
Ember.setProperties = function(self, hash) {
- changeProperties(function(){
+ changeProperties(function() {
for(var prop in hash) {
if (hash.hasOwnProperty(prop)) { set(self, prop, hash[prop]); }
}
});
retur... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/lib/utils.js | @@ -452,7 +452,7 @@ if (needsFinallyFix) {
} finally {
try {
finalResult = finalizer.call(binding);
- } catch (e){
+ } catch (e) {
finalError = e;
}
}
@@ -504,7 +504,7 @@ if (needsFinallyFix) {
} finally {
try {
finalResult = finalizer.call(bindin... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/accessors/get_test.js | @@ -36,14 +36,14 @@ testBoth("should call unknownProperty on watched values if the value is undefine
equal(get(obj, 'foo'), 'FOO', 'should return value from unknown');
});
-test('warn on attempts to get a property of undefined', function(){
+test('warn on attempts to get a property of undefined', function() {
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/accessors/isGlobalPath_test.js | @@ -1,16 +1,16 @@
module('Ember.isGlobalPath');
-test("global path's are recognized", function(){
+test("global path's are recognized", function() {
ok( Ember.isGlobalPath('App.myProperty') );
ok( Ember.isGlobalPath('App.myProperty.subProperty') );
});
-test("if there is a 'this' in the path, it's not a glo... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/binding/connect_test.js | @@ -3,7 +3,7 @@
require('ember-metal/~tests/props_helper');
function performTest(binding, a, b, get, set, connect) {
- if (connect === undefined) connect = function(){binding.connect(a);};
+ if (connect === undefined) connect = function() {binding.connect(a);};
ok(!Ember.run.currentRunLoop, 'performTest shou... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/binding/oneWay_test.js | @@ -15,21 +15,21 @@ module('system/mixin/binding/oneWay_test', {
test('oneWay(true) should only sync one way', function() {
var binding;
- Ember.run(function(){
+ Ember.run(function() {
binding = Ember.oneWay(MyApp, 'bar.value', 'foo.value');
});
equal(Ember.get('MyApp.foo.value'), 'FOO', 'foo sync... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/computed_test.js | @@ -531,9 +531,9 @@ testBoth('depending on Global chain', function(get, set) {
});
-testBoth('chained dependent keys should evaluate computed properties lazily', function(get,set){
+testBoth('chained dependent keys should evaluate computed properties lazily', function(get,set) {
Ember.defineProperty(obj.foo.bar... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/mixin/alias_method_test.js | @@ -19,7 +19,7 @@ test('methods of another name are aliased when the mixin is applied', function()
test('should follow aliasMethods all the way down', function() {
var MyMixin = Ember.Mixin.create({
bar: Ember.aliasMethod('foo'), // put first to break ordered iteration
- baz: function(){ return 'baz'; },
+ ... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/mixin/alias_test.js | @@ -1,8 +1,8 @@
module('Ember.alias',{
- setup: function(){
+ setup: function() {
Ember.TESTING_DEPRECATION = true;
},
- teardown: function(){
+ teardown: function() {
Ember.TESTING_DEPRECATION = false;
}
}); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/observer_test.js | @@ -220,7 +220,7 @@ testBoth('deferring property change notifications safely despite exceptions', fu
Ember.addObserver(obj, 'foo' ,function() { fooCount++; });
try {
- Ember.changeProperties(function(){
+ Ember.changeProperties(function() {
set(obj, 'foo', 'BIFF');
set(obj, 'foo', 'BAZ');
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/run_loop/debounce_test.js | @@ -1,16 +1,16 @@
var originalDebounce = Ember.run.backburner.debounce;
var wasCalled = false;
module('Ember.run.debounce',{
- setup: function(){
- Ember.run.backburner.debounce = function(){ wasCalled = true; };
+ setup: function() {
+ Ember.run.backburner.debounce = function() { wasCalled = true; };
},
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/run_loop/join_test.js | @@ -38,7 +38,7 @@ test('Ember.run.join returns undefined if joining another run-loop', function()
var value = 'returned value',
result;
- Ember.run(function(){
+ Ember.run(function() {
var result = Ember.run.join(function() {
return value;
}); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/run_loop/unwind_test.js | @@ -3,7 +3,7 @@ module('system/run_loop/unwind_test');
test('RunLoop unwinds despite unhandled exception', function() {
var initialRunLoop = Ember.run.currentRunLoop;
- raises(function(){
+ raises(function() {
Ember.run(function() {
Ember.run.schedule('actions', function() { throw new Error("boom!")... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/utils/is_array_test.js | @@ -2,7 +2,7 @@ module("Ember Type Checking");
var global = this;
-test("Ember.isArray" ,function(){
+test("Ember.isArray" ,function() {
var numarray = [1,2,3],
number = 23,
strarray = ["Hello", "Hi"], | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/utils/try_catch_finally_test.js | @@ -22,7 +22,7 @@ module("Ember.tryFinally", {
}
});
-function callTryCatchFinallyWithError(){
+function callTryCatchFinallyWithError() {
var errorWasThrown;
try {
Ember.tryCatchFinally(tryable, catchable, finalizer); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-metal/tests/utils/try_finally_test.js | @@ -17,7 +17,7 @@ module("Ember.tryFinally", {
}
});
-function callTryFinallyWithError(){
+function callTryFinallyWithError() {
var errorWasThrown;
try {
Ember.tryFinally(tryable, finalizer); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/lib/application/system/application.js | @@ -523,7 +523,7 @@ Ember.Application.registerInjection({
var name = property.charAt(0).toLowerCase() + property.substr(1),
controllerClass = app[property], controller;
- if(!Ember.Object.detect(controllerClass)){ return; }
+ if (!Ember.Object.detect(controllerClass)) { return; }
controller =... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/lib/helpers/action.js | @@ -84,7 +84,7 @@ ActionHelper.registerAction = function(actionName, options) {
```javascript
AView = Ember.View.extend({
templateName: 'a-template',
- anActionName: function(event){}
+ anActionName: function(event) {}
});
aView = AView.create();
@@ -210,7 +210,7 @@ ActionHelper.registerAction ... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/lib/location/history_location.js | @@ -117,7 +117,7 @@ Ember.HistoryLocation = Ember.Object.extend({
var guid = Ember.guidFor(this);
Ember.$(window).on('popstate.ember-location-'+guid, function(e) {
- if(!popstateReady) {
+ if (!popstateReady) {
return;
}
callback(location.pathname); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/tests/application_test.js | @@ -3,7 +3,7 @@ var app;
module("Ember.Application initialization", {
teardown: function() {
- Ember.run(function(){ app.destroy(); });
+ Ember.run(function() { app.destroy(); });
}
});
| true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/tests/helpers/action_test.js | @@ -225,7 +225,7 @@ test("should unregister event handlers on rerender", function() {
var previousActionId = view.$('a[data-ember-action]').attr('data-ember-action');
- Ember.run(function(){
+ Ember.run(function() {
view.rerender();
});
@@ -312,7 +312,7 @@ test("should allow 'send' as action name (#5... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/tests/location_test.js | @@ -10,12 +10,12 @@ module("Ember.Location, hash implementation", {
// make sure the onhashchange event fires
stop();
// There are weird issues in FF 3.6 if we pass start itself as the parameter
- setTimeout(function(){ start(); }, 1);
+ setTimeout(function() { start(); }, 1);
},
teardown: ... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/tests/routable_test.js | @@ -736,7 +736,7 @@ test("urlFor raises an error when route property is not defined", function() {
})
});
- expectAssertion(function (){
+ expectAssertion(function () {
router.urlFor('root.dashboard');
});
}); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-old-router/tests/view_test.js | @@ -23,7 +23,7 @@ test("should load named templates from View.templates", function() {
templateName: 'testTemplate'
});
- Ember.run(function(){
+ Ember.run(function() {
view.createElement();
});
| true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/lib/helpers/link_to.js | @@ -29,7 +29,7 @@ Ember.onLoad('Ember.Handlebars', function(Handlebars) {
function createPath(path) {
var fullPath = 'paramsContext';
- if(path !== '') {
+ if (path !== '') {
fullPath += '.' + path;
}
return fullPath;
@@ -152,11 +152,11 @@ Ember.onLoad('Ember.Handlebars', function(Handl... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/lib/helpers/outlet.js | @@ -86,7 +86,7 @@ Ember.onLoad('Ember.Handlebars', function(Handlebars) {
}
outletSource = options.data.view;
- while (!(outletSource.get('template.isTop'))){
+ while (!(outletSource.get('template.isTop'))) {
outletSource = outletSource.get('_parentView');
}
| true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/lib/location/history_location.js | @@ -121,7 +121,7 @@ Ember.HistoryLocation = Ember.Object.extend({
get(this, 'history').pushState(state, null, path);
// store state if browser doesn't support `history.state`
- if(!supportsHistoryState) {
+ if (!supportsHistoryState) {
this._historyState = state;
}
@@ -143,7 +143,7 @@ Em... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/lib/system/route.js | @@ -513,7 +513,7 @@ Ember.Route = Ember.Object.extend({
@method setupController
*/
- setupController: function(controller, context){
+ setupController: function(controller, context) {
if (controller && (context !== undefined)) {
set(controller, 'model', context);
} | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/lib/system/router.js | @@ -298,7 +298,7 @@ function transitionCompleted(route) {
Ember.Router.reopenClass({
map: function(callback) {
var router = this.router;
- if (!router){
+ if (!router) {
router = this.router = new Router();
router.callbacks = [];
}
@@ -309,7 +309,7 @@ Ember.Router.reopenClass({
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/lib/vendor/route-recognizer.js | @@ -101,7 +101,7 @@ define("route-recognizer",
results.push(new StarSegment(match[1]));
names.push(match[1]);
types.stars++;
- } else if(segment === "") {
+ } else if (segment === "") {
results.push(new EpsilonSegment());
} else {
results.pus... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/tests/helpers/action_test.js | @@ -369,7 +369,7 @@ test("should unregister event handlers on rerender", function() {
var previousActionId = view.$('a[data-ember-action]').attr('data-ember-action');
- Ember.run(function(){
+ Ember.run(function() {
view.rerender();
});
| true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/tests/helpers/render_test.js | @@ -136,7 +136,7 @@ test("{{render}} helper should raise an error when a given controller name does
Ember.TEMPLATES['home'] = compile("<p>BYE</p>");
- expectAssertion(function(){
+ expectAssertion(function() {
appendView(view);
}, 'The controller name you supplied \'postss\' did not resolve to a contro... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-routing/tests/system/route_test.js | @@ -10,7 +10,7 @@ module("Ember.Route", {
}
});
-test("default model utilizes the container to acquire the model factory", function(){
+test("default model utilizes the container to acquire the model factory", function() {
var container, Post, post;
expect(2); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/controllers/controller.js | @@ -70,7 +70,7 @@ Ember.ControllerMixin = Ember.Mixin.create({
if (this[actionName]) {
Ember.assert("The controller " + this + " does not have the action " + actionName, typeof this[actionName] === 'function');
this[actionName].apply(this, args);
- } else if(target = get(this, 'target')) {
+ } ... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/mixins/array.js | @@ -99,7 +99,7 @@ Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.protot
*/
objectsAt: function(indexes) {
var self = this;
- return map(indexes, function(idx){ return self.objectAt(idx); });
+ return map(indexes, function(idx) { return self.objectAt(idx); });
},
// o... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/mixins/deferred.js | @@ -53,7 +53,7 @@ Ember.DeferredMixin = Ember.Mixin.create({
deferred = get(this, '_deferred');
promise = deferred.promise;
- if (value === this){
+ if (value === this) {
deferred.resolve(promise);
} else {
deferred.resolve(value); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/mixins/enumerable.js | @@ -698,7 +698,7 @@ Ember.Enumerable = Ember.Mixin.create({
*/
uniq: function() {
var ret = Ember.A();
- this.forEach(function(k){
+ this.forEach(function(k) {
if (a_indexOf(ret, k)<0) ret.push(k);
});
return ret; | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/mixins/mutable_array.js | @@ -163,7 +163,7 @@ Ember.MutableArray = Ember.Mixin.create(Ember.Array, Ember.MutableEnumerable,/**
@return {Ember.Array} receiver
*/
pushObjects: function(objects) {
- if(!(Ember.Enumerable.detect(objects) || Ember.isArray(objects))) {
+ if (!(Ember.Enumerable.detect(objects) || Ember.isArray(objects... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/mixins/observable.js | @@ -269,7 +269,7 @@ Ember.Observable = Ember.Mixin.create(/** @scope Ember.Observable.prototype */ {
@param {String} keyName The property key that is about to change.
@return {Ember.Observable}
*/
- propertyWillChange: function(keyName){
+ propertyWillChange: function(keyName) {
Ember.propertyWillCh... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/mixins/sortable.js | @@ -60,8 +60,8 @@ Ember.SortableMixin = Ember.Mixin.create(Ember.MutableEnumerable, {
return a positive value otherwise:
```javascript
- function(x,y){ // These are assumed to be integers
- if(x === y)
+ function(x,y) { // These are assumed to be integers
+ if (x === y)
return 0;
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/mixins/target_action_support.js | @@ -57,7 +57,7 @@ Ember.TargetActionSupport = Ember.Mixin.create({
target: Ember.computed.alias('controller'),
action: 'save',
actionContext: Ember.computed.alias('context'),
- click: function(){
+ click: function() {
this.triggerAction(); // Sends the `save` action, along with the current c... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/system/array_proxy.js | @@ -278,7 +278,7 @@ Ember.ArrayProxy = Ember.Object.extend(Ember.MutableArray,/** @scope Ember.Array
},
pushObjects: function(objects) {
- if(!(Ember.Enumerable.detect(objects) || Ember.isArray(objects))) {
+ if (!(Ember.Enumerable.detect(objects) || Ember.isArray(objects))) {
throw new TypeError("... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/system/core_object.js | @@ -348,7 +348,7 @@ CoreObject.PrototypeMixin = Mixin.create({
included in the output.
App.Teacher = App.Person.extend({
- toStringExtension: function(){
+ toStringExtension: function() {
return this.get('fullName');
}
}); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/system/native_array.js | @@ -89,7 +89,7 @@ var NativeArray = Ember.Mixin.create(Ember.MutableArray, Ember.Observable, Ember
copy: function(deep) {
if (deep) {
- return this.map(function(item){ return Ember.copy(item, true); });
+ return this.map(function(item) { return Ember.copy(item, true); });
}
return this.s... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/lib/system/set.js | @@ -150,7 +150,7 @@ Ember.Set = Ember.CoreObject.extend(Ember.MutableEnumerable, Ember.Copyable, Emb
Ember.propertyWillChange(this, 'firstObject');
Ember.propertyWillChange(this, 'lastObject');
- for (var i=0; i < len; i++){
+ for (var i=0; i < len; i++) {
guid = guidFor(this[i]);
delete... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/core/error_test.js | @@ -1,9 +1,9 @@
module("Ember Error Throwing");
test("new Ember.Error displays provided message", function() {
- raises( function(){
+ raises( function() {
throw new Ember.Error('A Message');
- }, function(e){
+ }, function(e) {
return e.message === 'A Message';
}, 'the assigned message was display... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/core/isEqual_test.js | @@ -12,17 +12,17 @@ test("undefined and null", function() {
ok( !Ember.isEqual(null, undefined), "null is not equal to undefined" );
});
-test("strings should be equal",function(){
+test("strings should be equal",function() {
ok( !Ember.isEqual("Hello", "Hi"), "different Strings are unequal" );
ok( E... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/core/is_array_test.js | @@ -1,6 +1,6 @@
module("Ember Type Checking");
-test("Ember.isArray" ,function(){
+test("Ember.isArray" ,function() {
var arrayProxy = Ember.ArrayProxy.create({ content: Ember.A() });
equal(Ember.isArray(arrayProxy), true, "[]"); | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/ext/mixin_test.js | @@ -8,7 +8,7 @@ test('Defining a property ending in Binding should setup binding when applied',
var obj = { bar: { baz: 'BIFF' } };
- Ember.run(function(){
+ Ember.run(function() {
MyMixin.apply(obj);
});
@@ -20,21 +20,21 @@ test('Defining a property ending in Binding should setup binding when applie... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/legacy_1x/mixins/observable/observable_test.js | @@ -586,7 +586,7 @@ test("cacheable nested dependent keys should clear after their dependencies upda
var DepObj;
- Ember.run(function(){
+ Ember.run(function() {
lookup.DepObj = DepObj = ObservableObject.createWithMixins({
restaurant: ObservableObject.create({
menu: ObservableObject.create... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/legacy_1x/system/binding_test.js | @@ -129,7 +129,7 @@ module("one way binding", {
binding = Ember.oneWay(root, 'toObject.value', 'fromObject.value');
});
},
- teardown: function(){
+ teardown: function() {
Ember.run.cancelTimers();
}
});
@@ -178,7 +178,7 @@ module("chained binding", {
binding2 = Ember.bind(root, 'second... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/legacy_1x/system/object/base_test.js | @@ -76,7 +76,7 @@ module("Ember.Object observers", {
prop1: null,
// normal observer
- observer: Ember.observer(function(){
+ observer: Ember.observer(function() {
this._normal = true;
}, "prop1"),
@@ -134,7 +134,7 @@ module("Ember.Object superclass and subclasses", {
}
}... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/legacy_1x/system/object/bindings_test.js | @@ -54,7 +54,7 @@ var bindModuleOpts = {
module("bind() method", bindModuleOpts);
test("bind(TestNamespace.fromObject.bar) should follow absolute path", function() {
- Ember.run(function(){
+ Ember.run(function() {
// create binding
testObject.bind("foo", "TestNamespace.fromObject.bar");
@@ -66,7 +66,... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/legacy_1x/system/object/concatenated_test.js | @@ -15,7 +15,7 @@
var klass, get = Ember.get, set = Ember.set;
module("Ember.Object Concatenated Properties", {
- setup: function(){
+ setup: function() {
klass = Ember.Object.extend({
concatenatedProperties: ['values'],
values: ['a', 'b', 'c'] | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/legacy_1x/system/set_test.js | @@ -234,7 +234,7 @@ test("should remove a bools and reduce length", function() {
equal(set.length, oldLength-2, "should be 2 shorter") ;
});
-test("should remove 0 and reduce length", function(){
+test("should remove 0 and reduce length", function() {
var oldLength = set.length;
set.remove(0) ;
equal(set... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/mixins/array_test.js | @@ -61,15 +61,15 @@ Ember.ArrayTests.extend({
}).run();
-test("the return value of slice has Ember.Array applied", function(){
+test("the return value of slice has Ember.Array applied", function() {
var x = Ember.Object.createWithMixins(Ember.Array, {
length: 0
});
var y = x.slice(1);
equal(Ember.... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/mixins/deferred_test.js | @@ -205,7 +205,7 @@ test("can self reject", function() {
deferred = Ember.Object.createWithMixins(Ember.DeferredMixin);
});
- deferred.then(function(){
+ deferred.then(function() {
ok(false, 'should not fulfill');
},function(value) {
equal(value, deferred, "successfully rejected to itself");
@... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/mixins/enumerable_test.js | @@ -55,41 +55,41 @@ Ember.EnumerableTests.extend({
}).run();
-test("should apply Ember.Array to return value of map", function(){
+test("should apply Ember.Array to return value of map", function() {
var x = Ember.Object.createWithMixins(Ember.Enumerable);
var y = x.map(Ember.K);
equal(Ember.Array.detect(... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/mixins/sortable_test.js | @@ -238,14 +238,14 @@ module("Ember.Sortable with sortFunction and sortProperties", {
Ember.run(function() {
sortedArrayController = Ember.ArrayController.create({
sortProperties: ['name'],
- sortFunction: function(v, w){
+ sortFunction: function(v, w) {
var lowerV = v.to... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/mixins/target_action_support_test.js | @@ -72,7 +72,7 @@ test("it should find targets specified using a property path", function() {
ok(true === myObj.triggerAction(), "a valid target and action were specified");
});
-test("it should use an actionContext object specified as a property on the object", function(){
+test("it should use an actionContext o... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/suites/enumerable.js | @@ -209,7 +209,7 @@ var EnumerableTests = Ember.Object.extend({
@returns {void}
*/
- mutate: function(){},
+ mutate: function() {},
/**
Becomes true when you define a new mutate() method, indicating that | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/system/array_proxy/arranged_content_test.js | @@ -145,12 +145,12 @@ test("toArray - returns copy of arrangedContent", function() {
});
test("unshiftObject - adds to start of content", function() {
- Ember.run(function(){ array.unshiftObject(6); });
+ Ember.run(function() { array.unshiftObject(6); });
deepEqual(array.get('content'), [6,1,2,4,5], 'adds to s... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/system/namespace/base_test.js | @@ -13,12 +13,12 @@ module('Ember.Namespace', {
teardown: function() {
Ember.BOOTED = false;
- if (lookup.NamespaceA) { Ember.run(function(){ lookup.NamespaceA.destroy(); }); }
- if (lookup.NamespaceB) { Ember.run(function(){ lookup.NamespaceB.destroy(); }); }
+ if (lookup.NamespaceA) { Ember.run(fun... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/system/object/create_test.js | @@ -68,13 +68,13 @@ test("calls setUnknownProperty if defined", function() {
test("throws if you try to define a computed property", function() {
expectAssertion(function() {
Ember.Object.create({
- foo: Ember.computed(function(){})
+ foo: Ember.computed(function() {})
});
}, 'Ember.Object.cr... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/system/object/destroy_test.js | @@ -145,7 +145,7 @@ test("bindings should be synced when are updated in the willDestroy hook", funct
bar: bar
});
- Ember.run(function(){
+ Ember.run(function() {
Ember.bind(foo, 'value', 'bar.value');
});
| true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-runtime/tests/system/object/toString_test.js | @@ -67,7 +67,7 @@ test("toString on a namespace finds the namespace in Ember.lookup", function() {
test('toString includes toStringExtension if defined', function() {
var Foo = Ember.Object.extend({
- toStringExtension: function(){
+ toStringExtension: function() {
return "fooey";
... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-states/lib/state.js | @@ -220,7 +220,7 @@ Ember.State.reopenClass({
bManager = Ember.StateManager.create({
stateOne: Ember.State.create({
- changeToStateTwo: function(manager, context){
+ changeToStateTwo: function(manager, context) {
manager.transitionTo('stateTwo', context)
}
}), | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-states/lib/state_manager.js | @@ -285,7 +285,7 @@ var sendEvent = function(eventName, sendRecursiveArguments, isUnhandledPass) {
```javascript
managerC = Ember.StateManager.create({
- initialState: function(){
+ initialState: function() {
if (someLogic) {
return 'active';
} else {
@@ -328,12 +328,12 @@ var sendE... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-states/tests/state_test.js | @@ -181,7 +181,7 @@ test("the isLeaf property is false when a state has child states", function() {
equal(definitelyInside.get('isLeaf'), true);
});
-test("propagates its container to its child states", function(){
+test("propagates its container to its child states", function() {
var container = { lookup: Emb... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-testing/lib/helpers.js | @@ -48,7 +48,7 @@ function click(app, selector, context) {
function keyEvent(app, selector, context, type, keyCode) {
var $el;
- if(typeof keyCode === 'undefined'){
+ if (typeof keyCode === 'undefined') {
keyCode = type;
type = context;
context = null;
@@ -165,7 +165,7 @@ function chain(app, prom... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-testing/lib/support.js | @@ -29,7 +29,7 @@ $(function() {
$.event.special.click = {
// For checkbox, fire native event so checked state will be right
trigger: function() {
- if ( $.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
+ if ($.nodeName( this, "input" ) && this.type ==... | true |
Other | emberjs | ember.js | 239f120583ddc5c30ee96ccb38f6ba7e74f5f9d8.json | fix code styling for consistency | packages/ember-testing/tests/acceptance_test.js | @@ -1,7 +1,7 @@
var App, find, click, fillIn, currentRoute, visit, originalAdapter;
module("ember-testing Acceptance", {
- setup: function(){
+ setup: function() {
Ember.$('<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: aut... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.