Skip to content

Commit e2203af

Browse files
committed
change the loop condition
1 parent d391f5a commit e2203af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
* @method _cloneObject
211211
*/
212212
function _cloneObject(object) {
213-
if (object == null || typeof (object) != 'object') {
213+
if (object == null || typeof (object) != 'object' || object.hasOwnProperty("nodeName") === true) {
214214
return object;
215215
}
216216
var temp = {};

0 commit comments

Comments
 (0)