Преглед изворни кода

Rename css() method to style() method

Based on QuoJS Library
@soyjavi пре 14 година
родитељ
комит
888b2f0083
3 измењених фајлова са 6 додато и 6 уклоњено
  1. 1 1
      src/boot/Lungo.Boot.Layout.js
  2. 4 4
      src/view/Lungo.View.Resize.js
  3. 1 1
      src/view/Lungo.View.Scroll.js

+ 1 - 1
src/boot/Lungo.Boot.Layout.js

@@ -31,7 +31,7 @@ LUNGO.Boot.Layout = (function(lng, undefined) {
         if (_window.innerHeight == 356) {
             var _height = 416;
 
-            lng.Dom.query('body').css('height', _height + 'px');
+            lng.Dom.query('body').style('height', _height + 'px');
             _hideNavigationBar();
         }
     };

+ 4 - 4
src/view/Lungo.View.Resize.js

@@ -44,7 +44,7 @@ LUNGO.View.Resize = (function(lng, undefined) {
 
         if (element.length > 0) {
             var reference_dimension = element[reference]();
-            section.children(ARTICLE).css(property, reference_dimension + 'px');
+            section.children(ARTICLE).style(property, reference_dimension + 'px');
         }
     };
 
@@ -62,13 +62,13 @@ LUNGO.View.Resize = (function(lng, undefined) {
             var toolbar_children = toolbar.children();
             var toolbar_children_width = (toolbar.width() / toolbar_children.length);
 
-            toolbar_children.css('width', toolbar_children_width + 'px');
+            toolbar_children.style('width', toolbar_children_width + 'px');
         }
     };
 
     var _resizeScrollContainerWidth = function(container, child) {
         var scroll_width = (container.children().length * child.width());
-        container.css('width', scroll_width + 'px');
+        container.style('width', scroll_width + 'px');
     };
 
     var _resizeScrollContainerHeight = function(scroll, container, child) {
@@ -77,7 +77,7 @@ LUNGO.View.Resize = (function(lng, undefined) {
         var total_rows = Math.ceil(total_children / children_in_scroll_width);
 
         var scroll_height = (total_rows * child.height());
-        container.css('height', scroll_height + 'px');
+        container.style('height', scroll_height + 'px');
     };
 
     return {

+ 1 - 1
src/view/Lungo.View.Scroll.js

@@ -116,7 +116,7 @@ LUNGO.View.Scroll = (function(lng, undefined) {
 
     var _resizeChildContainer = function(element, height) {
         var child_container = lng.Dom.query(element).children().first();
-        child_container.css('height', height + 'px');
+        child_container.style('height', height + 'px');
     };
 
     var _saveScrollInCache = function(id, properties) {