Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio-main
Commits
7197e485
Commit
7197e485
authored
Jul 05, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
queries inherit method upgrade
parent
0d857363
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
src/queries/complexquery.js
src/queries/complexquery.js
+0
-1
src/queries/query.js
src/queries/query.js
+0
-1
src/queries/simplequery.js
src/queries/simplequery.js
+0
-1
src/queries/tool.js
src/queries/tool.js
+11
-1
No files found.
src/queries/complexquery.js
View file @
7197e485
...
...
@@ -39,7 +39,6 @@ function ComplexQuery(spec) {
}
inherits
(
ComplexQuery
,
Query
);
ComplexQuery
.
prototype
.
constructor
=
ComplexQuery
;
/**
* #crossLink "Query/match:method"
...
...
src/queries/query.js
View file @
7197e485
...
...
@@ -49,7 +49,6 @@ function Query() {
this
.
onParseEnd
=
emptyFunction
;
}
Query
.
prototype
.
constructor
=
Query
;
/**
* Filter the item list with matching item only
...
...
src/queries/simplequery.js
View file @
7197e485
...
...
@@ -43,7 +43,6 @@ function SimpleQuery(spec) {
}
inherits
(
SimpleQuery
,
Query
);
SimpleQuery
.
prototype
.
constructor
=
SimpleQuery
;
/**
* #crossLink "Query/match:method"
...
...
src/queries/tool.js
View file @
7197e485
...
...
@@ -65,10 +65,20 @@ function deepClone(object) {
* Inherits the prototype methods from one constructor into another. The
* prototype of `constructor` will be set to a new object created from
* `superConstructor`.
*
* @param {Function} constructor The constructor which inherits the super one
* @param {Function} superConstructor The super constructor
*/
function
inherits
(
constructor
,
superConstructor
)
{
constructor
.
super_
=
superConstructor
;
constructor
.
prototype
=
Object
.
create
(
superConstructor
.
prototype
,
{});
constructor
.
prototype
=
Object
.
create
(
superConstructor
.
prototype
,
{
"
constructor
"
:
{
"
configurable
"
:
true
,
"
enumerable
"
:
false
,
"
writable
"
:
true
,
"
value
"
:
constructor
}
});
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment