Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Feb 10, 2014
1 parent 4501bf6 commit b3a7a6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,17 @@
}
}

$.get = function(url, data, success, dataType){
$.get = function(/* url, data, success, dataType */){
return $.ajax(parseArguments.apply(null, arguments))
}

$.post = function(url, data, success, dataType){
$.post = function(/* url, data, success, dataType */){
var options = parseArguments.apply(null, arguments)
options.type = 'POST'
return $.ajax(options)
}

$.getJSON = function(url, data, success){
$.getJSON = function(/* url, data, success */){
var options = parseArguments.apply(null, arguments)
options.dataType = 'json'
return $.ajax(options)
Expand Down
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Zepto.js may be freely distributed under the MIT license.

;(function($){
var $$ = $.zepto.qsa, _zid = 1, undefined,
var _zid = 1, undefined,
slice = Array.prototype.slice,
isFunction = $.isFunction,
isString = function(obj){ return typeof obj == 'string' },
Expand Down
2 changes: 0 additions & 2 deletions src/zepto.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ var Zepto = (function() {
'*': document.createElement('div')
},
readyRE = /complete|loaded|interactive/,
classSelectorRE = /^\.([\w-]+)$/,
idSelectorRE = /^#([\w-]*)$/,
simpleSelectorRE = /^[\w-]*$/,
class2type = {},
toString = class2type.toString,
Expand Down

1 comment on commit b3a7a6f

@zlatanvasovic
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, Uglify really helps to find these! 😄

Please sign in to comment.