Skip to content

Commit

Permalink
use headlessCamelCase for ifExists/ifVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
aexaey committed Mar 7, 2017
1 parent 35fdf34 commit f9e8429
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,8 @@ exports.exists = function(selector) {
* @param {string} [selector]
* @param {function} fn
*/
exports.if_exists = function(selector, fn) {
debug('.if_exists()', selector);
exports.ifExists = function(selector, fn) {
debug('.ifExists()', selector);
return this.count(selector).then(function(count) {
if (count > 0) {
return fn();
Expand Down Expand Up @@ -1259,8 +1259,8 @@ exports.visible = function(selector) {
* @param {string} selector - The selector to find the visibility of.
* @param {function} fn
*/
exports.if_visible = function(selector, fn) {
debug('.if_visible()', selector);
exports.ifVisible = function(selector, fn) {
debug('.ifVisible()', selector);
return this
.__evaluate(function visible(selector) {
if (window.jQuery) {
Expand Down

0 comments on commit f9e8429

Please sign in to comment.