Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 416c483b
authored
Jan 11, 2012
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused reference
1 parent
0926dca1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
lib/model-factory.js
lib/model.js
lib/model-factory.js
View file @
416c483
...
@@ -174,7 +174,6 @@ module.exports = (function() {
...
@@ -174,7 +174,6 @@ module.exports = (function() {
return
this
.
build
(
values
).
save
()
return
this
.
build
(
values
).
save
()
}
}
ModelFactory
.
prototype
.
__defineGetter__
(
'primaryKeys'
,
function
()
{
ModelFactory
.
prototype
.
__defineGetter__
(
'primaryKeys'
,
function
()
{
var
result
=
{}
var
result
=
{}
Utils
.
_
.
each
(
this
.
attributes
,
function
(
dataTypeString
,
attributeName
)
{
Utils
.
_
.
each
(
this
.
attributes
,
function
(
dataTypeString
,
attributeName
)
{
...
...
lib/model.js
View file @
416c483
...
@@ -29,10 +29,6 @@ module.exports = (function() {
...
@@ -29,10 +29,6 @@ module.exports = (function() {
get
:
function
(){
return
this
.
sequelize
.
getQueryInterface
()
}
get
:
function
(){
return
this
.
sequelize
.
getQueryInterface
()
}
})
})
Object
.
defineProperty
(
Model
.
prototype
,
'QueryGenerator'
,
{
get
:
function
(){
return
this
.
QueryInterface
.
QueryGenerator
}
})
Object
.
defineProperty
(
Model
.
prototype
,
'isDeleted'
,
{
Object
.
defineProperty
(
Model
.
prototype
,
'isDeleted'
,
{
get
:
function
()
{
get
:
function
()
{
var
result
=
this
.
__options
.
timestamps
&&
this
.
__options
.
paranoid
var
result
=
this
.
__options
.
timestamps
&&
this
.
__options
.
paranoid
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment