Skip to content

Commit

Permalink
fix unintentional global
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 4, 2010
1 parent d870d29 commit 89a5180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zepto.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var Zepto = (function() {

function classRE(name){ return new RegExp("(^|\\s)"+name+"(\\s|$)") }
function compact(array){ return array.filter(function(el){ return el !== un && el !== null }) }
function camelize(str){ return str.replace(/-+(.)?/g, function(match, chr){ return chr ? chr.toUpperCase() : '' }) }

function Z(dom, _){ this.dom = dom || []; this.selector = _ || '' }

Expand All @@ -18,7 +19,6 @@ var Zepto = (function() {

$.extend = function(target, src){ for(k in src) target[k] = src[k] }
$.qsa = $$ = function(el, selector){ return slice.call(el.querySelectorAll(selector)) }
camelize = function(str){ return str.replace(/-+(.)?/g, function(match, chr){ return chr ? chr.toUpperCase() : '' }) }

$.fn = {
ready: function(callback){
Expand Down

0 comments on commit 89a5180

Please sign in to comment.