Skip to content

Commit

Permalink
add note about optimization killer
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Jun 30, 2014
1 parent 2f4d8b3 commit 13a9c71
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 9 deletions.
9 changes: 7 additions & 2 deletions build/util-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2014, KISSY v5.0.0
MIT Licensed
build time: Jun 18 13:23
build time: Jun 30 16:25
*/
/*
combined modules:
Expand Down Expand Up @@ -1181,6 +1181,9 @@ KISSY.add('util/string', ['./base'], function (S, require, exports, module) {
return decodeURIComponent(s.replace(/\+/g, ' '));
},
camelCase: function (name) {
if (name.indexOf('-') === -1) {
return name;
}
return name.replace(RE_DASH, upperCase);
},
/**
Expand Down Expand Up @@ -1588,7 +1591,9 @@ KISSY.add('util/web', [
bindReady();
}
try {
doc.execCommand('BackgroundImageCache', false, true);
if (doc.execCommand) {
doc.execCommand('BackgroundImageCache', false, true);
}
} catch (e) {
}
});
6 changes: 3 additions & 3 deletions build/util.js

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

9 changes: 7 additions & 2 deletions lib/build/util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2014, KISSY v5.0.0
MIT Licensed
build time: Jun 18 13:23
build time: Jun 30 16:25
*/
/*
combined modules:
Expand Down Expand Up @@ -1181,6 +1181,9 @@ KISSY.add('util/string', ['./base'], function (S, require, exports, module) {
return decodeURIComponent(s.replace(/\+/g, ' '));
},
camelCase: function (name) {
if (name.indexOf('-') === -1) {
return name;
}
return name.replace(RE_DASH, upperCase);
},
/**
Expand Down Expand Up @@ -1588,7 +1591,9 @@ KISSY.add('util/web', [
bindReady();
}
try {
doc.execCommand('BackgroundImageCache', false, true);
if (doc.execCommand) {
doc.execCommand('BackgroundImageCache', false, true);
}
} catch (e) {
}
});
4 changes: 3 additions & 1 deletion src/util/src/util/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ util.mix(util, {
},
/**
* Converts object to a TRUE array.
* // do not pass form.elements to this function ie678 bug
* do not pass form.elements to this function ie678 bug.
* passing arguments is not recommended.
* https://github.com/petkaantonov/bluebird/wiki/Optimization-killers
* @param o {object|Array} array like object or array
* @return {Array} native Array
* @member KISSY
Expand Down
4 changes: 3 additions & 1 deletion src/util/src/util/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ if (supportEvent) {
}

try {
doc.execCommand('BackgroundImageCache', false, true);
if (doc.execCommand) {
doc.execCommand('BackgroundImageCache', false, true);
}
} catch (e) {
}

0 comments on commit 13a9c71

Please sign in to comment.