Skip to content

Commit a791469

Browse files
committed
remove extend
1 parent 4470579 commit a791469

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

02.jQuery/01.Slider/script.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,4 @@ if (!Object.create) {
7272
f.prototype = obj;
7373
return new f();
7474
}
75-
}
76-
77-
if (!Object.prototype.extend) {
78-
Object.prototype.extend = function(properties) {
79-
function f() {};
80-
f.prototype = Object.create(this);
81-
for(var prop in properties) {
82-
f.prototype[prop] = properties[prop];
83-
}
84-
f.prototype._super = this;
85-
return new f();
86-
}
8775
}

0 commit comments

Comments
 (0)