Skip to content

Commit

Permalink
Use IE11 compliant Array and String calls (mozilla#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
humphd authored and Rajat Dhyani committed Apr 20, 2017
1 parent 0043f00 commit dec8fc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bramble/client/ProjectStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define([
ProjectStats.init = function(root, callback){
function addSize(path, next){
// ignore directories and do nothing
if (path.endsWith("/")){
if (/\/$/.test(path)){
return next();
}

Expand Down
4 changes: 2 additions & 2 deletions src/extensions/default/bramble/lib/ConsoleManagerRemote.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"time",
"timeEnd"].forEach(function(type) {
console[type] = function() {
var args = Array.from(arguments).slice();
var args = Array.prototype.slice.call(arguments);
transportSend(type, args);
};
});

console.assert = function() {
var args = Array.from(arguments).slice();
var args = Array.prototype.slice.call(arguments);
var expr = args.shift();
if (!expr) {
args[0] = "Assertion Failed: " + args[0];
Expand Down

0 comments on commit dec8fc4

Please sign in to comment.