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