|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
!(function () { |
|
|
|
|
function extend () { |
|
|
|
|
function extend() { |
|
|
|
|
var target = arguments[0] || {}, length = arguments.length, i = 1, options, name, src, copy; |
|
|
|
|
for (; i < length; i++) { |
|
|
|
|
// Only deal with non-null/undefined values
|
|
|
|
@ -90,11 +90,11 @@
|
|
|
|
|
//释放当前对象
|
|
|
|
|
_purgeRef: function () { |
|
|
|
|
if (this.options.__ref) { |
|
|
|
|
this.options.__ref.call(null); |
|
|
|
|
this.options.__ref.call(null, null); |
|
|
|
|
this.options.__ref = null; |
|
|
|
|
} |
|
|
|
|
if (this.options.ref) { |
|
|
|
|
this.options.ref.call(null); |
|
|
|
|
this.options.ref.call(null, null); |
|
|
|
|
this.options.ref = null; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|