Permalink
Browse files

use polyfills for indexOf and slice in IE8. Fixes #43

  • Loading branch information...
1 parent 13a8129 commit 1ac450c9129e65994ecaafa1ecc1963dc7afc056 @statianzo statianzo committed Sep 27, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/jquip.events.js
  2. +1 −1 src/jquip.js
View
@@ -103,7 +103,7 @@ $['plug']("events", function($){
return this['each'](function(i, el){
addEvt(el, evt, cb, sel, function(e){
var target = e.target||e.srcElement, nodes = $['$$'](sel, el);
- while (target && nodes.indexOf(target) < 0)
+ while (target && $['_indexOf'](nodes, target) < 0)
target = target.parentNode;
if (target && !(target === el) && !(target === document)){
cb.call(target, $['extend'](createProxy(e||window.event), {
View
@@ -549,7 +549,7 @@ window['$'] = window['jquip'] = (function(){
var el, rest = sel.substring(1);
return ridSelector.test(sel) && ctx === doc
? ((el = doc.getElementById(rest)) ? [el] : [])
- : slice.call(
+ : makeArray(
rclassSelector.test(sel) && ctx.getElementsByClassName
? ctx.getElementsByClassName(rest)
: rtagSelector.test(sel)

0 comments on commit 1ac450c

Please sign in to comment.