Browse Source

Remove use of get()

pull/2330/head
jlukic 9 years ago
parent
commit
476591320f
5 changed files with 8 additions and 8 deletions
  1. 2
      src/definitions/behaviors/api.js
  2. 2
      src/definitions/behaviors/form.js
  3. 4
      src/definitions/modules/checkbox.js
  4. 6
      src/definitions/modules/shape.js
  5. 2
      src/definitions/modules/sticky.js

2
src/definitions/behaviors/api.js

@ -67,7 +67,7 @@ $.api = $.fn.api = function(parameters) {
// standard module
element = this,
context = $context.get(),
context = $context[0],
instance = $module.data(moduleNamespace),
module
;

2
src/definitions/behaviors/form.js

@ -393,7 +393,7 @@ $.fn.form = function(parameters) {
rules
;
$.each(validation, function(fieldName, field) {
if( module.get.field(field.identifier).get(0) == $field.get(0) ) {
if( module.get.field(field.identifier)[0] == $field[0] ) {
rules = field;
}
});

4
src/definitions/modules/checkbox.js

@ -87,14 +87,14 @@ $.fn.checkbox = function(parameters) {
module.debug('Setting initial value to checked');
module.set.checked();
if(settings.fireOnInit) {
settings.onChecked.call($input.get());
settings.onChecked.call($input[0]);
}
}
else {
module.debug('Setting initial value to unchecked');
module.remove.checked();
if(settings.fireOnInit) {
settings.onUnchecked.call($input.get());
settings.onUnchecked.call($input[0]);
}
}
},

6
src/definitions/modules/shape.js

@ -102,7 +102,7 @@ $.fn.shape = function(parameters) {
repaint: function() {
module.verbose('Forcing repaint event');
var
shape = $sides.get(0) || document.createElement('div'),
shape = $sides[0] || document.createElement('div'),
fakeAssignment = shape.offsetWidth
;
},
@ -117,7 +117,7 @@ $.fn.shape = function(parameters) {
module.reset();
module.set.active();
};
settings.beforeChange.call($nextSide.get());
settings.beforeChange.call($nextSide[0]);
if(module.get.transitionEvent()) {
module.verbose('Starting CSS animation');
$module
@ -279,7 +279,7 @@ $.fn.shape = function(parameters) {
$nextSide
.addClass(className.active)
;
settings.onChange.call($nextSide.get());
settings.onChange.call($nextSide[0]);
module.set.defaultSide();
}
},

2
src/definitions/modules/sticky.js

@ -199,7 +199,7 @@ $.fn.sticky = function(parameters) {
sticky: function() {
var
$element = $('<div/>'),
element = $element.get()
element = $element[0]
;
$element.addClass(className.supported);
return($element.css('position').match('sticky'));

Loading…
Cancel
Save