Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove gtl.clone

newGtl = new Gtl.Filter()
  • Loading branch information...
commit 9cb0edef44e8e95fe5212ef087c318e9948333bc 1 parent 13b3219
@kossnocorp authored
Showing with 0 additions and 19 deletions.
  1. +0 −11 spec/gtl_spec.coffee
  2. +0 −8 src/gtl.coffee
View
11 spec/gtl_spec.coffee
@@ -168,14 +168,3 @@ describe 'Greater than less', ->
[{ num : 1 }, { num : 2 }, { num : 3 }, { num : 4 }, { num : 5 }]
(obj) -> obj.num
).should.eql [{ num : 4 }, { num : 5 }]
-
- describe 'gtl.clone', ->
-
- it 'should clone gtl object', ->
- cloned = gtl.clone()
- cloned.comparators.should.not.eq gtl.comparators
-
- it 'should copy based gtl.comparators', ->
- cloned = gtl.clone()
- for name, fn of gtl.comparators
- cloned.comparators[name].should.eq fn
View
8 src/gtl.coffee
@@ -204,14 +204,6 @@ gtl.comparators.fuzzy = (str, searchStr) ->
return false
true
-###
- Public: clone gtl object
-###
-gtl.clone = ->
- newGtl = new Gtl.Filter()
- newGtl.comparators = merge(gtl.comparators)
- newGtl
-
# Export gtl to global scope
if window?
window.gtl = gtl
Please sign in to comment.
Something went wrong with that request. Please try again.