ie7 fixes: define indexOf, use charAt rather than [] to access string,
put try/catch around fn that was throwing errors.
This commit is contained in:
@@ -37,3 +37,11 @@ $ ->
|
||||
$('#signup').click ->
|
||||
$('#signup-modal input[name="email"]').focus()
|
||||
false
|
||||
|
||||
# fix for ie
|
||||
if !Array::indexOf
|
||||
Array::indexOf = (obj, start = 0) ->
|
||||
for ele, i in this[start..]
|
||||
if ele is obj
|
||||
return i + start
|
||||
return -1
|
||||
|
||||
@@ -2,6 +2,5 @@
|
||||
// content-box | border-box | inherit
|
||||
-webkit-box-sizing: $box;
|
||||
-moz-box-sizing: $box;
|
||||
box-sizing: $box;
|
||||
box-sizing: $box; *behavior: url(/static/scripts/boxsizing.htc);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,10 @@ function update(){
|
||||
}
|
||||
resizetimeout = window.setTimeout(function(){
|
||||
restore();
|
||||
init();
|
||||
try {
|
||||
init();
|
||||
}
|
||||
catch (err) {}
|
||||
resizetimeout = null;
|
||||
},100);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user