Return options, for consistency

This commit is contained in:
Luis Leiva 2019-07-18 11:12:02 +03:00
parent 9c64bcaf4a
commit ec030d9367
2 changed files with 6 additions and 1 deletions

View File

@ -91,7 +91,9 @@
postProcess(elem);
});
} else { // getter
return $(this).data(namespace);
return $(this).data(namespace).options;
}
},
}
},
/**

View File

@ -119,6 +119,9 @@
postProcess(elem);
return this;
} else { // getter
return data.options;
}
},
return data;
}
},