Skip to content

Commit

Permalink
fix indentation and add .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherif BOUCHELAGHEM committed Sep 7, 2016
1 parent 11a7e5f commit 059caa5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
; Unix-style newlines
[*]
end_of_line = LF
indent_style = tab
indent_size = 4
trim_trailing_whitespace = false
32 changes: 16 additions & 16 deletions list/list-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,24 +625,24 @@ QUnit.test("extending DefineList constructor functions - value (#61)", function(
});

QUnit.test("'*' inheritance works (#61)", function(){
var Account = DefineMap.extend({
name: "string",
amount: "number",
slug: {
serialize: true,
get: function(){
return this.name.toLowerCase().replace(/ /g,'-').replace(/[^\w-]+/g,'');
}
}
});
var Account = DefineMap.extend({
name: "string",
amount: "number",
slug: {
serialize: true,
get: function() {
return this.name.toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g, '');
}
}
});

var BaseList = DefineList.extend({
"*": Account
});
var BaseList = DefineList.extend({
"*": Account
});

var ExtendedList = BaseList.extend({});
var ExtendedList = BaseList.extend({});

var xl = new ExtendedList([{}]);
var xl = new ExtendedList([{}]);

QUnit.ok(xl[0] instanceof Account);
QUnit.ok(xl[0] instanceof Account);
});

0 comments on commit 059caa5

Please sign in to comment.