Skip to content

Commit

Permalink
Fixing Zepto incompatibility with querySelector result
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Ottaviani authored and Eduardo Ottaviani committed Apr 3, 2015
1 parent 30b4082 commit 93569e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions source/jails.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ define(function(){
}
}


modules = null;
},

Expand Down Expand Up @@ -170,7 +169,7 @@ define(function(){
};

this.x = function(target){
target = $(dom.querySelectorAll(target));
target = element.find(target);
return function(){
var args = slice.call( arguments );
target.trigger('execute', {args :args});
Expand Down Expand Up @@ -232,6 +231,7 @@ define(function(){
};

this.render = function(vo, template){

var tmpl = template || tpl;
this.partial(element, tmpl, vo);
};
Expand Down Expand Up @@ -332,7 +332,6 @@ define(function(){
_class :function( name, element ){

var _self = this;
this.name = name;

Module.common._class.apply(this, [name, element]);

Expand Down
2 changes: 1 addition & 1 deletion source/jails.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93569e4

Please sign in to comment.