Skip to content

Commit

Permalink
fix: replace .size() to .length
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshuicmq committed May 7, 2021
1 parent 6cd751b commit bdb9229
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-wt-editor",
"version": "1.4.2",
"version": "1.4.4",
"homepage": "https://github.com/WorktileTech/angular-wt-editor",
"authors": [
"YCTech"
Expand Down
2 changes: 1 addition & 1 deletion dist/wt-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ angular.module("wt-editor")
$timeout(function() {
_.forEach(wtEditorConfig.extendButtons, function(obj, key) {
var _dom = $(element).find("[name=" + obj.name + "]");
if (_dom.size() > 0) {
if (_dom.length > 0) {
//_dom.html(obj.template);
var _scope = _dom.scope().$new();
if (obj.controller) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ angular.module("wt-editor")
$timeout(function() {
_.forEach(wtEditorConfig.extendButtons, function(obj, key) {
var _dom = $(element).find("[name=" + obj.name + "]");
if (_dom.size() > 0) {
if (_dom.length > 0) {
//_dom.html(obj.template);
var _scope = _dom.scope().$new();
if (obj.controller) {
Expand Down

0 comments on commit bdb9229

Please sign in to comment.