febs-browser
Advanced tools
Comparing version 0.7.8 to 0.7.9
@@ -232,2 +232,4 @@ ( function( global, factory ) { | ||
var CreateDom; | ||
/** | ||
@@ -328,6 +330,6 @@ * @desc 类jquery dom操作. | ||
// plugin. | ||
for (const key in Dom.fn) { | ||
for (const key in CreateDom.fn) { | ||
if (key == 'extend' || key == 'fn') continue; | ||
if (typeof Dom.fn[key] === 'function') { | ||
this[key] = Dom.fn[key].bind(this); | ||
if (typeof CreateDom.fn[key] === 'function') { | ||
this[key] = CreateDom.fn[key].bind(this); | ||
} | ||
@@ -1266,5 +1268,8 @@ } | ||
CreateDom = function(n) { | ||
return new Dom(n); | ||
} | ||
// plugin. | ||
Dom.fn = {}; | ||
Dom.extend = function(plugin) { | ||
CreateDom.fn = {}; | ||
CreateDom.extend = function(plugin) { | ||
if (plugin) { | ||
@@ -1274,3 +1279,3 @@ for (const key in plugin) { | ||
if (typeof plugin[key] === 'function') { | ||
Dom[key] = plugin[key]; | ||
CreateDom[key] = plugin[key]; | ||
} | ||
@@ -1281,4 +1286,4 @@ } | ||
return Dom; | ||
return {Dom, CreateDom}; | ||
} | ||
); |
@@ -57,3 +57,3 @@ | ||
febs.dom = require('./dom'); | ||
febs['$'] = function(n) { return new febs.dom(n); } | ||
febs['$'] = febs.dom.CreateDom; | ||
@@ -60,0 +60,0 @@ window['febs'] = febs; |
@@ -73,3 +73,3 @@ { | ||
"name": "febs-browser", | ||
"version": "0.7.8" | ||
"version": "0.7.9" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1469947
15049